Delete all lines after the last match

前端 未结 0 1584
深忆病人
深忆病人 2021-01-01 06:42

I need to remove all lines after the last line that contains the word "fox"

Say for example for the following input file "in.txt"

T         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题