######## TO PRINT FILE IN REVERSE ORDER BY LINE #############3 if [ $# -ne 1 ] then echo "Usage reverse_file <filename> " exit 1; fi ######## By using for loop ############# awk '{ line[NR] = $0 } END { for (i=NR; i>0; i=i-1) print line[i] }' $1
Sunday, 14 April 2013
Home »
Shell Scripting
» PRINT FILE IN REVERSE ORDER BY LINE
0 blogger-disqus:
Post a Comment