clear echo "Ascending order of word in File" echo " ===============================" echo "Enter File Name " read filename echo "\n\n\t\t\t Main File " echo "\t\t\t =========" echo `cat $filename` for i in `cat $filename` do echo $i >> tempfile.txt done `sort tempfile.txt>$filename` echo "\n\n\t\t\tSorted Word in File " echo "\t\t\t ===================\n" echo `cat $filename` rm tempfile.txtOutput:
0 comments:
Post a Comment