0

I need to print a file, but from the last line to the first. I think I can append a number to the beginning of each line, sort descending, and then remove the line numbers, but there's probably some more elegant way to do that. is there?

spiderman
  • 289
  • 3
  • 15

1 Answers1

2

You can use tac command (tac- cat spelled backwards...)

Nir Levy
  • 12,750
  • 3
  • 21
  • 38