grep exclude

grep –exclude=PATTERN path

grep –exclude=*.exe /home/

skip all exe files