bug-findutils
[Top][All Lists]
Advanced

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

Re: [bug #21373] [Feature req] Option to manipulate paths before {} expa


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




reply via email to

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