[PLUG] Changing Case in a List of Names
Rich Shepard
rshepard at appl-ecosys.com
Thu Apr 16 01:53:47 UTC 2009
On Wed, 15 Apr 2009, Nate wrote:
> My sed-fu was deficient I guess (or my sed was) so I fell back to perl:
>
> If you want word-case
> perl -pe 's/ \b (\w) ([^\s]+) \b /\1\L\2/gx'
>
> # ONE COMPANY -> One Company (rather than One company)
Another highly useful tool. Many thanks.
Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
More information about the PLUG
mailing list