Answers for "how run command in loop"

2

how run command in loop

// Run command in loop sleep not mandatory done is mandatory
for i in {1..10}; do command; sleep 5; done

example for i in {1..10}; do echo -n "This is a test in loop $i "; sleep 5; done
Posted by: Guest on May-02-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language