|
From: | Ole Tange |
Subject: | [bug #38356] xargs -P option creates wrong result |
Date: | Thu, 21 Feb 2013 23:23:31 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11 |
Follow-up Comment #3, bug #38356 (project findutils): xargs -P is not designed to make sure the output does not mix up. GNU Parallel, however, is. So use GNU Parallel instead and it will work just fine: find . -type f ( -name ".[cC]" -o -name ".[hH]" -o -name "*.[cC][pP][pP]" ) | parallel -P0 -I"{}" grep -Hn $1 $2 $3 $4 $5 $6 $7 $8 $9 "{}" See: http://www.gnu.org/software/parallel/man.html#differences_between_xargs_and_gnu_parallel and http://www.youtube.com/playlist?list=PL284C9FF2488BC6D1 Propose: Close - not a bug (but a problem due to the design). _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?38356> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |