I've just used Elias' idea to change a file's content...


Where file name is word:

perl -i -p -e 's/(.)(.*)/$1\L$2/' word


On Friday, Aug 15, 2003, at 23:29 Europe/Brussels, Elias Assmann wrote:


On Fri, Aug 15, 2003 at 02:20:19PM -0700, Scott Taylor wrote:

Any one have or know of a function to convert ugly "NAME, USER" to "User
Name"?

$ perl -le '$_ = "NAME"; s/(.)(.*)/$1\L$2/; print' Name

The function to convert a string to lower case is "lc".

HTH,

Elias

--
If you take the fact that a cat always falls on his feets and a toast
always falls on the buttered side, what happens when you tie a toast
on the back of a cat and you throw him out the window?

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to