URL:
  <http://savannah.gnu.org/bugs/?21373>

                 Summary: [Feature req] Option to manipulate paths before {}
expansion.
                 Project: findutils
            Submitted by: None
            Submitted on: Friday 10/19/2007 at 09:39 UTC
                Category: find
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Peter Mogensen
        Originator Email: [EMAIL PROTECTED]
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.27
           Fixed Release: None

    _______________________________________________________

Details:

When using -exec {}, find replaces {} with either an absolute path or a path
relative to the current directory. Some times you need a path relative to the
subdirectory you're searching in.
Example:

Your say
find ./lib -name '*.pm' -exec ... {} \;

And you need {} to expand to:
Text/Glyffer.pm
XML/Paffer.pm

And not to:
./lib/Text/Glyffer.pm
./lib/XML/Paffer.pm

An option like the -p for the patch program to control {} expansion would be
nice.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?21373>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



Reply via email to