how to delete the lines after a certain line in shell?

后端 未结 0 1867
忘掉有多难
忘掉有多难 2020-12-10 10:29

I have a file like below

first line
second line
third line
forth line

I want to delete the line after the second line but remained the second

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