Why is this sed command only working on every other match?

后端 未结 0 542
心在旅途
心在旅途 2021-01-30 10:28

Here\'s a sed command, works great, just on every other line (simplified for your convenience):

cat testfile.txt | sed -E "/PATTERN/,/^>/{//!d;}"

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