}
if [ $# -eq 0 ] then
echo "For more info try `basename $0` —help"
exit 1
fi
while [ $# -gt 0 ]
do
case $1 in
# установите переменные на базе применяемой опции
-u)
TRCASE=upper
ЕХТ=".UС"
OPT=yes
shift
;;
-l)
TRCASE=lower
EXT=".LC"
OPT=yes
shift
;;
-help) echo "convert a file(s) to uppercase from lowercase" echo "convert a file(s) from lowercase to uppercase" echo "will convert all characters according to the" echo " specified command option," echo " Where option ls"
echo " -l Convert to lowercase"
echo " -uConvert to uppercase"
echo " The original file(s) ls not touched. A new file(s)"
echo "will be created with either a. UC or. LC extension"
echo "usage; $0 -[l|u] file [file..]"
exit 0
;;
-*) echo "usage: `basename $0` -[l|u] file [file..]"