bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnu parallel in the bash manual


From: Chet Ramey
Subject: Re: gnu parallel in the bash manual
Date: Sat, 2 Mar 2013 19:40:24 -0500

> this is actually more disturbing.
> 
> ls | parallel mv {} destdir
> 
> find -type f -print0 | xargs -0 -I{} -P <NumJobs> /bin/mv {} <destdir>

If we're really going to pick nits here, those two aren't really identical.

You'd probably want something like

find . -depth 1 \! -name '.*' -print0

to start.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]