Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Title Case a Textified String
- X-seq: zsh-users 14912
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Title Case a Textified String
- Date: Thu, 11 Mar 2010 12:43:01 +0000 (UTC)
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: SuccessTheory
Hi
I want to convert a textified string to a Title Case Phrase
eg
fred-goat-dog.jpg to Fred Goat Dog
My first timid effort
echo "fred-goat-dog.jpg" | sed 's/-/ /g' | sed 's/\.jpg//'
Perl would do this with ease but is there a zsh solution (of course there
is!)
--
zzapper
http://zzapper.co.uk/ Technical Tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author