Structure Query Language, C programming, Java, Servlet, Jsp, Unix
Home
Special
C / C++
GTU [PL/SQL]
IVAN BAYROSS [SQL]
JAVA
UNIX
WTAD
FON
Contact Us
CPP
Android
SEO
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment