& done – parallelize the bash for loop

perhaps I would have finished my last paper a month earlier if I had known about this simple trick: when running a simple for loop in bash, take advantage of a multicore processor and use an “&” rather than “;” to close the loop.  for instance:

Leave a Reply

Your email address will not be published. Required fields are marked *