I'm trying to print lines that have b not followed by e in a file. I tried using negative look-ahead, but it's not working.
 grep  'b(?!e)' filename
 grep '(?!e)b)' filename
 egrep  'b(?!e)' f3.txt
When I run these commands, nothing shows up, no error or anything else. I checked other people's similar posts as well but was unable to run it.
 
     
    