How to reverse lines of a text file?

后端 未结 9 1198
迷失自我
迷失自我 2021-01-01 10:05

I\'m writing a small shell script that needs to reverse the lines of a text file. Is there a standard filter command to do this sort of thing?

My specific applicatio

9条回答
  •  长情又很酷
    2021-01-01 10:55

    cat -b only numbers nonblank lines"


    If that's the only issue you want to avoid, then why not use "cat -n" to number all the lines?

提交回复
热议问题