Run a linux command five times 2011-05-31 04:55pm
I needed a way to run a command a specific number of times:
i=0 ; while [ $i -lt 5 ]; do ls /tmp; i=$(( $i + 1 )); done;
I needed a way to run a command a specific number of times:
i=0 ; while [ $i -lt 5 ]; do ls /tmp; i=$(( $i + 1 )); done;