Mon, 27 Jul 2009 00:54:04 +0100: James Youngman <[email protected]> wrote:

> On Fri, Jul 24, 2009 at 8:17 PM, Kamil Dudka<[email protected]> wrote:
> 
> Or the word transformation operators /, %% and ## built into the shell.
> 
> $ x=foobar; echo ${x%%bar} ; echo ${x##foo}; echo ${x/oob/_}
> foo
> bar
> f_ar
> 
> James.

James,

These are pretty handy shell features that I didn't know.  Thank you
very much.  However, I still keep my original position of wanting (or
feel nice to have) such a command as the proposed "path" command that
is specifically designed for path name manipulation as there are path
specific issues such as canonicalization, symbolic link handling,
etc. in addition to pure string manipulations i.e. cut, prepend,
append, etc.

-Tak



_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to