For those that don't have the tac command, to reverse a file in UNIX, you could use: Code: cat <file-name> | awk '{ line[NR] = $0;} END{for(i=NR;i>1;i--) print line[i] }'
cat <file-name> | awk '{ line[NR] = $0;} END{for(i=NR;i>1;i--) print line[i] }'
Forum Rules
Bookmarks