Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2018-06-08 11:13:26
Size: 260
Editor: SamatJain
Comment:
Revision 4 as of 2018-08-16 02:11:13
Size: 352
Editor: SamatJain
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
find . -maxdepth 1 -print0 | parallel -0 -j4 echo cp {} $dst # Because we are copying the current directory, make sure $dst is correct
find . -maxdepth 1 -mindepth 1 -print0 | parallel -0 -j4 echo cp -avn {} $dst

   1 # Parallel copy
   2 # Because we are copying the current directory, make sure $dst is correct
   3 find . -maxdepth 1 -mindepth 1 -print0 | parallel -0 -j4 echo cp -avn {} $dst
   4 
   5 # Check MP3s in parallel, many arguments per invocation
   6 parallel -m mp3check -Sqe ::: *mp3
   7 
   8 # Run commands in a file parallel
   9 parallel < commands.txt

SamatsWiki: CheatSheet/GNUParallel (last edited 2019-04-28 00:16:11 by SamatJain)