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 {}
