Wednesday, 16 September 2015

PR(09) write the shell Program to transfer file text data frem lower case to upper case and vice versa



echo -n "Enter File Name:"
read fileName
if [ ! -f $fileName ];then
    echo "Filename $fileName does not exists"
    exit 1
fi
tr '[a-z]' '[A-Z]' < $fileName

No comments:

Post a Comment