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

Re: Title Case a Textified String



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


Regards
Dimitre



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