Help with egrep command

cat /tmp/inventory.csv|grep AARP|egrep -v "T11|12.4\(7\)"

how do i exclude in addition to above 12.4\(3\)

I have tried adding this in i.e

-v "T11|12.4\(7\)|12.4\(3\)"

but it did not work

What is your input and your desired output?

Alternations should be parenthesised

egrep -v '(T11|12.4\((7|3)\))'
1 Like

hey thanks Skrynesaver