don't background the editor if we are not under X
[sgn-devtools.git] / codegrep
blobbc062c47a0dd02acdad9a5ea3dd74a191b00daca
1 #!/bin/sh
2 find . -iregex ".*\.\(c\|cc\|php\|h\|hh\|cpp\|html\|pl\|pm\|cgi\|txt\|js\|css\|t\|inc\|module\|engine\)$" -exec grep -iHn -- "$1" {} ';' | perl -pe 's/(\S):/$1 :/g; s/:(\S)/: $1/g'