Code:
num=0; while [ $num -le 10 ]; do some_command; num=$(expr $num + 1); sleep 2; done
Will run some_command ten times with 2 second intervals.
In a script named 'run':
Code:
num=0; while [ $num -le $1 ]; do $2; num=$(expr $num + 1); sleep 2; done
Call as 'run 10 ls' or 'run 3 "ps ax"' (commands containing a space must be quoted to be seen as one argument).
Mind you, if it's always the exact same command you have to run five times, you can just put the command in a shell script 5 times and run the shell script