|
From: | Peter Mogensen |
Subject: | Re: [bug #21373] [Feature req] Option to manipulate paths before {} expansion. |
Date: | Sat, 24 Nov 2007 12:03:34 +0100 |
User-agent: | Thunderbird 1.5.0.14pre (X11/20071023) |
James Youngman wrote:
Follow-up Comment #1, bug #21373 (project findutils):Why not just use find ./lib -name '*.pm' -print0 | perl -0ne 's/([^/]*/){2}//; print;' | xargs -r0 ...
Which depends on perl. find lib/perl -name '*.pm' -print | sed -r 's/^([^\/]*\/){2}//' | xargs -l1 echo ...doesn't, but compare to the (hypotethical): find lib/perl -name '*.pm' -p2 -exec echo {} \; # where -p strips prefix for -exec {}
[Prev in Thread] | Current Thread | [Next in Thread] |