Run a linux command five times
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;