Brian Chrzanowski's Website

About

Shell Helpers

This is just a collection of shell helpers to copy/paste that I've found useful.

Find Files with More than one Pattern

find . -iname "*.EXTENSION" -exec sh -c 'grep -q "PATTERN1" "$1" && grep -q "PATTERN2" "$1"' _ {} \; -print