Quantcast
Viewing all articles
Browse latest Browse all 26

Answer by Jessica Baker-seuk for How can I reverse the order of lines in a file?

Not sure if I missed something.How about pipe into sort

i.e.cat file | sort -r

Sorry if I missed the point of this question.I often use this to scan syslogs.

In linux :watch " tail /var/log/syslog | sort -r "

Hope it helps someoneBest wishes


Viewing all articles
Browse latest Browse all 26

Trending Articles