case
You may need to convert text from lower to upper case sometimes, for example to create directories in a filesystem with upper case only, or to input data into a field you are ... fi
echo $@ |tr '[a-z]' '[A-Z]'
}
The variable UPPER holds the newly returned upper case string. Notice the use again of using the sp... ther supply the string in a script like this:
UPPER=`str_to_upper "documents.live"`
echo $upper
or supply an argu... to the function instead of a string, like this:
UPPER=`str_to_upper $1`
echo $UPPER
Both of these examples use subs