Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Title Case a Textified String
- X-seq: zsh-users 14923
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Title Case a Textified String
- Date: Thu, 11 Mar 2010 17:23:26 +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
- References: <Xns9D38815866DD0zzappergmailcom@xxxxxxxxxxxx> <4B98F1D6.2020502@xxxxxxxxx> <237967ef1003110545m6e870074y3e43a11dbfdb3124@xxxxxxxxxxxxxx> <4B98F536.1010905@xxxxxxxxx> <4B98F6F7.1050002@xxxxxxxxx>
>>>>> I want to convert a textified string to a Title Case Phrase
>>>>>
>>>>> eg
>>>>> fred-goat-dog.jpg to Fred Goat Dog
>>>>>
>>>> % print ${${(Cs:-:):-fred-goat-dog.jpg}%.*}
>>>> Fred Goat Dog
>>> Okay, yours has the most smileys, so I guess you win this round.
Thanks both of you and for completeness (and for anyone googling into this
thread)
a solution to textify Fred Goat Dog to fred-goat-dog.jpg?
--
zzapper
http://zzapper.co.uk/ Technical Tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author