Output file lines from last to first in Bash

后端 未结 5 1546
说谎
说谎 2020-12-13 00:35

I want to display the last 10 lines of my log file, starting with the last line- like a normal log reader. I thought this would be a variation of the tail command,

5条回答
  •  囚心锁ツ
    2020-12-13 01:10

    This is the perfect methods to print output in reverse order

    tail -n 10   | tac
    

提交回复
热议问题