Looping from the command line

Recently I had a script that I needed to run about 100 times in a row. This little one liner came in super handy for that. Replace “COMMAND” with the command that you want to run. In this example, the command will run 100 times in a row!

for i in `seq 100`; do COMMAND; done