#Just use 'v' option to deny pattern in search and 'E' for multiples patterns grep -Ev 'pattern1|pattern2|pattern3' filename.txt