[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A request for addition of a command
From: |
Tak Ota |
Subject: |
Re: A request for addition of a command |
Date: |
Mon, 27 Jul 2009 11:34:33 -0700 |
Mon, 27 Jul 2009 00:54:04 +0100: James Youngman <address@hidden> wrote:
> On Fri, Jul 24, 2009 at 8:17 PM, Kamil Dudka<address@hidden> 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
Re: A request for addition of a command, Tak Ota, 2009/07/24
Re: A request for addition of a command, James Youngman, 2009/07/26
Re: A request for addition of a command,
Tak Ota <=