- Code: Select all
#!/usr/bin/sh
find -regex '.*/\(SCCS\|RCS\|\.[A-Za-z0-9_]\).*' -prune -or -type l -or -type f | xargs egrep --binary-files=without-match -I "$@" /dev/null
I put this into my path in a file called search and use it all the freaking time. It won't grep object files, it ignores revision control directories, hidden directories, it slices, it dices, it should be a built-in.