Many of the command-line tools we use and write daily have no clue about multiple cores or threads. Wrote a script to convert a directory of music files to some other format? You probably did it serially! Did you write a script for downloading a bunch of big files? You probably did that serially too!
These problems are inherently parallisable. Don't waste idle CPU cycles on your machine.
q
is here to help. It allows you to conveniently build a queue of commands that you wish to run. When you're done adding commands to the queue, you execute the queue. q
will automatically figure out how many cores you've got and run your commands in parallel. Here's a generic example: