Concurrently run every line in a bash script
Go to solution
Solved by Sauron,
2 minutes ago, babadoctor said:Is there a better way of doing it than this?
No. What's wrong with the ampersand operator that you feel the need to look for something else?
3 minutes ago, babadoctor said:also running thousands of lines concurrently might crash my computer
Not really, no. Plus wget will be bottlenecked by your connection long before it overwhelms your cpu. If you don't want messy output you can redirect each command's output to /dev/null:
wget x.png > /dev/null 2>&1 &
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now