summaryrefslogtreecommitdiff
path: root/bin/grepsrc.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-05-29 00:46:26 +0000
committerChristian Grothoff <christian@grothoff.org>2009-05-29 00:46:26 +0000
commit0a217a8df1657b4334b55b0e4a6c7837a8dbcfd9 (patch)
tree6b552f40eb089db96409a312a98d9b12bd669102 /bin/grepsrc.sh
ng
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 "$*"