Better HN
topnewbestaskshowjobs
Log inSign up

samvittighed

1 karma · joined Dec 14, 2012 (13y ago) · 4 submissions

Submissions

comment 13y ago · link · parent

If you use GNU Parallel instead of xargs, then you probably never need to make room in your brain for -print0. GNU Parallel separates on \n and deals correctly with files like: My brother's 12" records.ods

comment 13y ago · link · parent

With GNU Parallel it looks like this:

  parallel --nonall --slf RemoteHosts -j0 gzip -9 xxx/*.log
If you have multple CPUs on your remote hosts and have GNU Parallel installed there:

  parallel --nonall --slf RemoteHosts -j0 --arg-sep , parallel gzip -9 ::: xxx/*.log

comment 13y ago · link · parent

Watch the intro videos: https://www.youtube.com/playlist?list=PL284C9FF2488BC6D1

comment 13y ago · link · parent

True. Unless you need some of the facilities in GNU Parallel that you do not find in xargs (such as --group which is default, running on remote machines, -L with -I, or --pipe for processing piped data).