Print a line matching pattern1 unless next line contains pattern2
Print a line matching pattern1 unless next line contains pattern2
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!
(unix.stackexchange.com/users/86629/scottychi)ScottyChi |
(unix.stackexchange.com/users/22565/st%c3%a9phane-chazelas)Stéphane Chazelas |
(unix.stackexchange.com/users/12574/gilles-qu%c3%a9not)Gilles Quénot |
A special thanks goes out to the (https://unix.stackexchange.com/questions/736505/print-a-line-matching-pattern1-unless-next-line-contains-pattern2)Stackexchange community |
I wish you all a wonderful day! Stay safe :)
php regular-expression perl pcre grep