Bash - tac
Print the file in reverse order e.g; last line first, first line last.
- tac is the OPPOSITE of cat
See also: cat
tac a.txt > b.txt
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.