#!/bin/sh # From: Dean Gaudet # # recursively grep source files find . '(' -name '*.[cChHylsS]' -o -name '*.cpp' -o -name '*.[cC][cC]' ')' -print0 | xargs -0r grep ${1+"$@"}