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'
In reply to Re: Title Case One-Liner
by danger
in thread Title Case One-Liner
by zeno
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |