Write a shell script to change extension of an existing file.
clear echo "Enter first file name: " read f1 if [ -f $f1 ] then echo "Enter new extention: " read e cp ${f1} ${f1}.$e # i=basename $f1 # b= $i txt # for file in *.txt # i=`basename file txt` # mv $file $i doc echo $f1"."$e" file is created"else echo "File not Exist " fi