Sequentially one after another:
for i in $(ls -1) ; do command $i ; done
All at one time:
for i in $(ls -1); do
(
command $i ; done ;
) &
done; wait
How to say only for example 4 or 8 at once?
Sequentially one after another:
for i in $(ls -1) ; do command $i ; done
All at one time:
for i in $(ls -1); do
(
command $i ; done ;
) &
done; wait
How to say only for example 4 or 8 at once?