Reputation: 274
I'm trying to find line that does not have two consecutive zeroes and alphabet.
so I tried:
grep -v "00|[a-z]" filename
but didn't work....
how can I solve this?
Upvotes: 0
Views: 54
Reputation: 203324
awk '!(/00/ && /[a-z]/)' filename
Reputation: 13069
perl -lne 'print unless /00/ && /[a-z]/' filename
Reputation: 13189
Split to two separate conditions
grep -v -e '00' -e '[a-z]'
Upvotes: 1