projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0834168
)
fixed to allow a target directory for searching to also be passed on command line.
author
Chris Koeritz
<fred@gruntose.com>
Thu, 7 Feb 2013 19:43:46 +0000
(14:43 -0500)
committer
Chris Koeritz
<fred@gruntose.com>
Thu, 7 Feb 2013 19:43:46 +0000
(14:43 -0500)
scripts/buildor/find_in_code.sh
patch
|
blob
|
history
diff --git
a/scripts/buildor/find_in_code.sh
b/scripts/buildor/find_in_code.sh
index cafe21013cc92d2df3e08de732ab24c555ab8872..c57c6fce1da12de4e71a89f6c9f7075893811c13 100644
(file)
--- a/
scripts/buildor/find_in_code.sh
+++ b/
scripts/buildor/find_in_code.sh
@@
-6,8
+6,14
@@
if [ -z "$seek" ]; then
echo pattern.
exit 1
fi
+#hmmm: might be nice to support multiple directories...
+# just need to pass them to find as an array maybe?
+dir="$1"; shift
+if [ -z "$dir" ]; then
+ dir=.
+fi
-find
.
-type f \( -iname "*" \
+find
"$dir"
-type f \( -iname "*" \
! -iname "*.class" \
! -iname "*.dll" \
! -iname "*.exe" \