[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnu parallel in the bash manual
From: |
John Kearney |
Subject: |
Re: gnu parallel in the bash manual |
Date: |
Sat, 16 Feb 2013 13:54:48 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
Am 16.02.2013 09:50, schrieb Pierre Gaston:
> I don't quite see the point of having gnu parallel discussed in the
> bash reference manual.
> http://www.gnu.org/software/bash/manual/bashref.html#GNU-Parallel
> I don't argue that it can be a useful tool, but then you might as well
> discuss sed awk grep make find etc..
> Or even the ones not part of the standard toolset since parallel is
> not installed by default even on the linux distribution I know: flock
> fdupes recode convmv rsync etc...
Actually xargs could do everything listed better. and is installed by
default on most systems.
> On top of that the examples teach incorrect things eg, "the common
> idioms that operate on lines read from a file"(sic)
>
> for x in $(cat list); do
>
> doesn't even read lines!
this is actually more disturbing.
ls | parallel mv {} destdir
find -type f -print0 | xargs -0 -I{} -P <NumJobs> /bin/mv {} <destdir>
>
> I'd say this should be removed.
>
Or the examples should at least be fixed. there are terrible practices
being shown there.