How to write a for loop which runs an asynchronous command in each iteration? – unix.stackexchange.com

I wonder why there is an error using an asynchronous command within a loop? $ for i in {1..8}; do sleep 100 & ; done bash: syntax error near unexpected token `;' If I write it as $ for i in ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "How to write a for loop which runs an asynchronous command in each iteration? – unix.stackexchange.com"