summaryrefslogtreecommitdiff
path: root/bin/grepsrc.sh
blob: eb2d5e462c87ab2706113a69d89fae7c38b3d5d7 (plain)
1
2
3
4
#!/bin/sh
# This script is in the public domain.
# grepsrc.sh string  --- greps for string over all C files
find . -name "*.c" -print | grep -v "#" | xargs grep -n "$*"