[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: bash script



On Mon, 19 Feb 2001, Binand Raj S. wrote:

> Use this cute perl one liner to convert a word to lowercase.
> echo $word | perl -pe 's/(.*)/\L$1/g'

shouldn't that use
tr/A-Z/a-z/g;
instead of
s/(.*)/L$1/g

\Indraneel

-- 
http://www.indialine.org