Non printing option in sed is behaving oddly

Hi I'm having a problem with a sed command that I thought I was using correctly but apparently that's not the case.

I was hoping someone here could point out what it is I am doing wrong?
I am using the print, no print option for a matched pattern in sed. Everything seemed to be working fine except I noticed that some lines that were matching my pattern are missing from my output.

Hello harveyclayton,

Please post samples of input and expected output along with what you have tried to solve your own problem.

Thanks,
R. Singh

1 Like

Please also tell us what operating system and shell you are using. Different versions of sed are available on various operating systems and without knowing which operating system you're using, we have to guess at what might be happening in your environment.