find everything except something using grep

the -v switch is used to return negative results. So, to find everything which does not contain “findme” use

cat filename | grep -v "findme"

Tags: ,

Leave a Reply