aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-10 09:04:20 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-10 09:04:20 +0200
commitd6ca58d1a1cd10a167f0b302c73f4abfbe3388c9 (patch)
treec53c15357f1b33fac46641cdb1bca76be603890f
parentf625f167daadc8c01148f45d0603e9d5c1dc7560 (diff)
downloadxutil-d6ca58d1a1cd10a167f0b302c73f4abfbe3388c9.tar.gz
g: Search *.cc
-rwxr-xr-xg4
1 files changed, 3 insertions, 1 deletions
diff --git a/g b/g
index 91a0a46..04cbc36 100755
--- a/g
+++ b/g
@@ -1,3 +1,5 @@
#!/bin/sh
-p grep -n "$*" $(find . -name '*.c' -or -name '*.h' | sed s,./,,)
+p grep -n "$*" $(
+ find . -name '*.c' -or -name '*.h' -or -name '*.cc' |
+ sed s,./,,)