Run script or command multiple times
Run multiple detached/concurrent scripts or commands For zsh shell:repeat 10 { echo "TEST" && sleep 3 & }
For other terminals:
for run in {1..10}; do echo "TEST" && sleep 3 &; done
Run multiple scripts or commands in single thread
repeat 10 { echo "TEST" && sleep 3 }
For other terminals:
for run in {1..10}; do echo "TEST" && sleep 3 ; done
NOTE: the "sleep" is used just to showcase the thread or concurrency.