Link to home
Start Free TrialLog in
Avatar of lolaferrari
lolaferrariFlag for United Kingdom of Great Britain and Northern Ireland

asked on

egrep -v not working

If  I have a file like this

file:


ENV
TEST=blah
head
tail

if I want to egrep -v '(^ENV|^TEST^head)' it doesn't seem to work - any idea?
Avatar of ozo
ozo
Flag of United States of America image

What did you want  egrep -v '(^ENV|^TEST^head)' to do?
Did you want to do
egrep -v '(^ENV|^TEST|^head)'
or
egrep -v '^(ENV|TEST|head)'
Avatar of lolaferrari

ASKER

I don't understand the difference :(
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial