Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: changing case to Title Case
- X-seq: zsh-users 17083
- From: Valodim Skywalker <valodim@xxxxxxxxxxxxxx>
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Re: changing case to Title Case
- Date: Mon, 14 May 2012 21:54:41 +0200
- In-reply-to: <17E2103A984D4F51BF3CC1706E237D57@gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I usually split off the extension for this, like:
${(C)foo:r}.${foo:e}
Note this might mess up for cases where $foo does not have an extension.
The 's is quite a special case, I don't think there's a non-ugly way to
handle it...
- V
Attachment:
signature.asc
Description: Digital signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author