Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by www.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #run #command #number #times #linux
ADD COMMENT
Topic
Name
2+2 =