After this runs you have all "translated" names in <FILENAME>. The old version of the file is kept as "<FILENAME>.old".perl -i.old -pe 's/(?<![a-z])(\w)/uc $1/eg' <FILENAME>
And in case the regex is unclear: The first part is a negative lookahead (see perldoc perlre).
In reply to Re: Case Munging
by morgon
in thread Case Munging
by mikeraz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |