$ cat test
1
start
2
end
3

$ sed -n '1,/start/p;/end/,$p' test 1 start end 3

$ sed '/start/,/end/d' test 1 3

 

相关文章:

  • 2021-12-09
  • 2021-06-14
  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-09-03
  • 2021-12-15
猜你喜欢
  • 2021-06-17
  • 2021-12-31
  • 2022-12-23
  • 2021-06-05
  • 2021-09-20
  • 2021-09-30
相关资源
相似解决方案