Structure Query Language, C programming, Java, Servlet, Jsp, Unix

Tuesday, 13 March 2012

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


[[   METHOD 1   ]]

echo "Enter filename"
read filename
sort -t "~" -k 1 $filename

[[   METHOD 2   ]]


echo "Enter filename"
read filename
sort $filename

No comments:

Post a Comment