I have a huge log file that could repet values over and over. i want to grep a set like Word A to Word D but stop after a match. in the below, it starts over again.sed -n -e '/Word A/,/Word D/ p'How can you get it to stop after finding the first Word DWord AWord BWord CWord DWord EWord FWord DWord GExpected result with sed -n -e '/Word A/,/Word D/ p'Word AWord BWord CWord DActual result:Word AWord BWord CWord DWord E -> should not existWord F -> should not existWord D -> should not existWord G -> should not exist
How to sed pattern matching and stop after the last match
sed