1. 11
  1.  

    1. 2

      When doing the same processing on a large number of files, I often just write a throwaway little 2-line makefile and use make -j…with a process substitution you don’t even need to save it to a file:

      $ make -j`nproc` -f <(printf '%.bar: %.foo\n\tfoo2bar $< > $@\n') $(a=(*.foo); echo "${a[@]//.foo/.bar}")