79200401

Date: 2024-11-18 14:57:44
Score: 0.5
Natty:
Report link

sed line selection uses regular expression, and by default, without the -E/-r option, the Basic flavor is used.

What you want to use is Groups - \(regexp\)

So something like this:

sed '/orders="\(Green\|Orange\|Blue\)/!d'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Phu Ngo