View Single Post
Old Nov 30th, 2006, 2:21 PM   #3
jim mcnamara
Hobbyist Programmer
 
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power: 4 jim mcnamara is on a distinguished road
On a POSIX-compliant unix, tr supports POSIX classes -- those [:upper:] things.
echo "enter a word \c"
read aword
aword=`echo "$aword" | tr -s '[:lower:]' '[:upper:]'`
jim mcnamara is offline   Reply With Quote