How would I display the lines that do not contain certain letters? This is what I have already tried unsuccessfully to show the lines that do not consist of an a or b:
egrep *[^ab]* filename
a
and b
, the command will turn into grep -v a b filename
, which does something different than intended. So: grep -v '[ab]' filename
man grep
; it can learn you a lot.