in reply to Title Case One-Liner
There are also variations of one of this faq's answers which are a little shorter and also adjustable:
perl -le '$_="ZENO WAS HERE";s/([^\s.,-]+)/\u\L$1/g;print' perl -le '$_="DANGER was hERe too";s/(\S+)/\u\L$1/g;print'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Title Case One-Liner
by japhy (Canon) on Feb 10, 2001 at 00:46 UTC | |
by chipmunk (Parson) on Feb 10, 2001 at 02:44 UTC | |
by MeowChow (Vicar) on Feb 10, 2001 at 03:38 UTC | |
by japhy (Canon) on Feb 10, 2001 at 03:44 UTC |