Wednesday, December 14, 2011

Shell: convert UPPER case to lower case

Hate CAPITOL LETTERS!?  Yea, me too.  If some noob sends you an all capitol letter based server-name feel free to:

1) hit them
2) convert the letters to LOWER CASE.

echo $word| tr [:upper:] [:lower:]

This will use tr (translate) to move the characters from UPPER to lower case.

No comments:

Post a Comment