zsh-users
 help / color / mirror / code / Atom feed
* Title Case a Textified String
@ 2010-03-11 12:43 zzapper
  2010-03-11 13:10 ` Mikael Magnusson
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: zzapper @ 2010-03-11 12:43 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-03-12 11:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-11 12:43 Title Case a Textified String zzapper
2010-03-11 13:10 ` Mikael Magnusson
2010-03-11 13:14 ` Frank Terbeck
2010-03-11 13:36 ` Radoulov, Dimitre
2010-03-11 13:45   ` Mikael Magnusson
2010-03-11 13:50     ` Radoulov, Dimitre
2010-03-11 13:58       ` Radoulov, Dimitre
2010-03-11 17:23         ` zzapper
2010-03-12 11:01           ` Radoulov, Dimitre

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).