|
From: | Peter Mogensen |
Subject: | Re: [bug #21373] [Feature req] Option to manipulate paths before {} expansion. |
Date: | Sat, 24 Nov 2007 12:21:13 +0100 |
User-agent: | Thunderbird 1.5.0.14pre (X11/20071023) |
Peter Mogensen wrote:
find lib/perl -name '*.pm' -p2 -exec echo {} \; # where -p strips prefix for -exec {}
Which of course has the problem of associating -p to -exec in case of more -exec's
However.... I found out that find actually supports this via -printf, so please close the feature request.
find lib/perl/ -name '*.pm' -printf "%P\n" | xargs -l1 Does what I want. Sorry for the inconvenience. regards, Peter
[Prev in Thread] | Current Thread | [Next in Thread] |