sed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sed pattern and delete line at 2nd or 3rd or 4th matching


From: Nguyen Trung Hieu
Subject: sed pattern and delete line at 2nd or 3rd or 4th matching
Date: Sat, 2 Sep 2023 20:27:40 +0700

Hi all

Is there a SIMPLE METHOD for

sed pattern and delete line at 2nd or 3rd or 4th matching only

Example - test.txt
  111
222
      1111 <-- delete only this line. It is 2nd matching
333
        111 <-- or delete only this line. It is 3rd matching
444

Sorry but I'm searched over 2 days on the internet and no results as
expected

Thank you very much!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]