Back to index

Loop bash command in one line

Published by bolmaster2

Sometimes I want to repeat a command in the terminal and I always forget how to do it 😑. To be clear about it this will execute the command and wait for it to complete until it starts the next. No async stuff here!

Plain and simple for loop:

for i in {1..3}; do echo $i; done