Menu

Examples

Thomas Maier-Komor
   If  you  have  a  lot  of .zip files that you want to extract, then use
   xjobs like this:

$ ls -1 *.zip | xjobs unzip

   If you want to do the same without getting the  output  of  each  unzip
   task on your terminal, then try this:

$ ls -1 *.zip | xjobs -n unzip

   To gzip all *.bak files in a given directory hierarchy, use it the fol‐
   lowing way:

$ find . -name '*.bak' | xjobs gzip

   To generate index files for a set of *.jar files, you can use the redi‐
   rection feature of xjobs, and do the following:

$ ls -1 .jar | sed 's/(.)/\1 > \1.idx/' | xjobs jar tf

   If you also want to capture the error output, than use >& instead of >.

MongoDB Logo MongoDB