Answers for "run a command x number of times linux"

4

run a command x number of times linux

## run command 10 times 
for i in {1..10}; do commandNameHere; done
 
## run script 20 times
for i in {1..10}; do /path/to/cache.script.sh; done
Posted by: Guest on July-18-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language