Some fun with XARGS

Run a task on 16 processors

$ ls *.txt |xargs -P 16 -n 1 bzip2 -9

takes all .txt file and bzip them separatly

Discussion

Enter your comment
If you can't read the letters on the image, download this .wav file to get them read to you.
 
en/ressources/astuces/xargs.txt · Last modified: 2011/03/16 01:30 (external edit)
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0