> 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 -pe 'tr/A-Z/a-z/; s/(\S+)/\u$1/g;' <filename>

-- 
Hal Pomeranz, Founder/CEO      Deer Run Associates      [email protected]
    Network Connectivity and Security, Systems Management, Training
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to