Tuesday, April 24, 2007

Linux:shell: how to exchange case of letters

If you wanna exchange between the upper case of one string and the lower case, you could use the command
echo "ThisIsAnExample" | tr 'a-z' 'A-Z'
and
echo "ThisIsAnExample" | tr 'A-Z' 'a-z'

No comments:

Locations of visitors to this page