QUẢN TRỊ HỆ ÐIỀU HÀNH LINUX - Trang 93

www.nhipsongcongnghe.net


tr a-z A-Z <$1 >$1.out

rm $1

mv $1.out $1

shift

done; }

lower () {

shift

for i

do

tr A-Z a-z <$1 >$1.out

rm $1

mv $1.out $1

shift

done; }

print () {

shift

for i

do

lpr $1

shift

done; }

usage_error () {

echo "$1 syntax is $1 <option> <input files>"

echo ""

echo "where option is one of the following"

echo "p -- to print frame files"

echo "u -- to save as uppercase"

echo "l -- to save as lowercase"; }

case $1

in