sort logfile by timestamp on linux command line

前端 未结 7 1905
自闭症患者
自闭症患者 2020-12-11 01:34

I have a logfile with entries like:

...    
freeswitch.log:2011-09-08 12:21:07.282236 [ERR] ftdm_queue.c:136 Failed to enqueue obj 0x7f2cda3525c0 in queue 0x         


        
7条回答
  •  天涯浪人
    2020-12-11 01:58

    The log file seems ascending, you can

    tac yourlogfile
    

    which would reversely show your log file.

提交回复
热议问题