[PLUG] Changing Case in a List of Names
Michael
michael at jamhome.us
Thu Apr 16 16:23:19 UTC 2009
Rich Shepard wrote:
> I have a list of company names all in upper case; one per line. Can I use
> a combination of sed, tr, and other tools to automate converting them all to
> mixed case (i.e., initial letter uppercase, all others lower case)? There
> must be a shell script already written to do this, but not in the reference
> books I have.
perl -ne 'print ucfirst lc;' FILENAME
comes to mind.
--
Michael Rasmussen
http://www.jamhome.us/
Be Appropriate && Follow Your Curiosity
More information about the PLUG
mailing list