>>>>> "Hal" == Hal Pomeranz <[email protected]> writes:

Hal> perl -pe 'tr/A-Z/a-z/; s/(\S+)/\u$1/g;' <filename>

Or more simply:

perl -pe 's/(\w+)/\u\L$1/g' <filename>

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to