I want to catch the output between 2 different patterns, for example :
sed -n '/^pattern1/,/^pattern2/p;/^pattern2/q'
But I want to catch the output without the patterns in cause.
I know that grep -Ev
will help me, but I wonder how it's done with sed.