xy: handle .c and .h as well
authorColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Thu, 23 Aug 2012 17:52:34 +0000 (10:52 -0700)
committerColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Thu, 23 Aug 2012 17:53:58 +0000 (10:53 -0700)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

xy

diff --git a/xy b/xy
index f47b92e..14184b0 100755 (executable)
--- a/xy
+++ b/xy
@@ -1,3 +1,4 @@
 #!/bin/bash
 
-find . -noleaf -xdev -name '*.java' | grep $@ | xx
+find . -noleaf -xdev -name '*.java' -o -name '*.h' -o -name '*.c' | \
+    grep $@ | xx