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

Title Case a Textified String



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