aboutsummaryrefslogtreecommitdiff
path: root/g
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-09 20:37:39 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-09 20:37:39 +0200
commitf625f167daadc8c01148f45d0603e9d5c1dc7560 (patch)
tree03e5a3be33d0c2247056775fda70a9f3e28556b4 /g
parent284b2b9f33bc3c8faf03fa77828495655e1054f4 (diff)
downloadxutil-f625f167daadc8c01148f45d0603e9d5c1dc7560.tar.gz
Add 'g' utility
Diffstat (limited to 'g')
-rwxr-xr-xg3
1 files changed, 3 insertions, 0 deletions
diff --git a/g b/g
new file mode 100755
index 0000000..91a0a46
--- /dev/null
+++ b/g
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+p grep -n "$*" $(find . -name '*.c' -or -name '*.h' | sed s,./,,)