@amszmidt yes, this is an option too. But sem is a bit different, it is especially useful when you have some script already, but you need to add a pitch of parallelism into :)
Notices by Akkerman (akkerman@social.kyiv.dcomm.net.ua)
-
Embed this notice
Akkerman (akkerman@social.kyiv.dcomm.net.ua)'s status on Wednesday, 20-Nov-2024 18:51:07 JST Akkerman -
Embed this notice
Akkerman (akkerman@social.kyiv.dcomm.net.ua)'s status on Wednesday, 20-Nov-2024 06:49:15 JST Akkerman New day, new #shell tool finding.
I was using GNU parallel before to run some simple scripts in parallel. But found out another tool from the same package: sem - semaphore for executing shell command lines in parallel.This is a simple example:
```
for url in $urls; do
sem -j 16 curl -O "$url"
done
sem --wait
```Run curl in 16 parallel jobs. How cool is that!