Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Title Case a Textified String



On 11 March 2010 14:36, Radoulov, Dimitre <cichomitiko@xxxxxxxxx> wrote:
> On 11/03/2010 13.43, zzapper wrote:
>>
>> Hi
>> 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.

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author