Thread
:
Translating upper and lowercase
View Single Post
Nov 30th, 2006, 2:21 PM
#
3
jim mcnamara
Hobbyist Programmer
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power:
4
On a POSIX-compliant unix, tr supports POSIX classes -- those [:upper:] things.
(
Toggle Plain Text
)
echo "enter a word \c" read aword aword=`echo "$aword" | tr -s '[:lower:]' '[:upper:]'`
echo "enter a word \c" read aword aword=`echo "$aword" | tr -s '[:lower:]' '[:upper:]'`
jim mcnamara
View Public Profile
Find More Posts by jim mcnamara