summaryrefslogtreecommitdiff
path: root/bin/grepsrc.sh
blob: 0c18dd7d2d608634ae56ee3f92631ee65f54b0d7 (plain)
1
2
3
#!/bin/sh
# grepsrc.sh string  --- greps for string over all C files
find . -name "*.c" -print | grep -v "#" | xargs grep -n "$*"