# #Write a script to display all lines of a file in ascending order. # clear echo -n "Enter name of the file :" read filename if [ ! -f $filename ] then echo "File does not exist" else echo "===== SORTED LINES OF FILES =====" echo "$(cat $filename | sort)" echo "=================================" fi