How to extract/delete lines including 0%?

Hello,
I have a data file consisting of many lines and my target is to delete all lines containing 0%
After some sed processes, I convert it to shown below format:
Sample webpage logfile:

Expected output is:

sed command is not working for below methods:

sed -n '/0%/p' logfile > output
sed /0%/d logfile > output
sed -n '/right;">0%/p' logfile > output

Could you please let me know what is the correct command?

thanks
Boris

You shouldn't have stopped experimenting. Try e.g.

sed /[^0-9]0%/d file
sed '/right;">0%/d' file

---------- Post updated at 14:42 ---------- Previous update was at 14:41 ----------

The third line would satisfy this condition!

1 Like