summaryrefslogtreecommitdiff
path: root/bin/grepsrc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/grepsrc.sh')
-rwxr-xr-xbin/grepsrc.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/grepsrc.sh b/bin/grepsrc.sh
new file mode 100755
index 000000000..0c18dd7d2
--- /dev/null
+++ b/bin/grepsrc.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+# grepsrc.sh string --- greps for string over all C files
+find . -name "*.c" -print | grep -v "#" | xargs grep -n "$*"