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;
Leave A Reply
All content licensed under the Creative Commons License