postheadericon Write a script to display all words of a file in ascending order.


File Name : ex22.sh


echo "Enter File name:\c"
read fn
 for i in `cat $fn`
do
echo $i >> f2.txt
done
sort f2.txt
rm f2.txt


1 comments:

Follow by Email

Total Pageviews

© BipinRupadiya.com. Powered by Blogger.