[MacPorts] #21873: fs-traverse: Add -strip option to remove path prefix
MacPorts
noreply at macports.org
Tue Oct 6 02:52:15 PDT 2009
#21873: fs-traverse: Add -strip option to remove path prefix
---------------------------------+------------------------------------------
Reporter: raimue@… | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone: MacPorts Future
Component: base | Version:
Keywords: | Port:
---------------------------------+------------------------------------------
fs-traverse currently returns the full path name combined from the path
argument and the "local" file name. It would be helpful to have an option
to get the "local" part only.
Example:
{{{
fs-traverse f /path/to/foo {
puts $f
}
=>
/path/to/foo/file1
/path/to/foo/file2
...
}}}
{{{
fs-traverse -strip f /path/to/foo {
puts $f
}
=>
file1
file2
...
}}}
--
Ticket URL: <http://trac.macports.org/ticket/21873>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list