nice new tool to show version of feisty meow
[feisty_meow.git] / scripts / archival / search_arch.sh
index 523ccab72f076f21445427b160f4683d8dde8ff7..934d50d0cb022db5bbc41393ba6f7b962034d48e 100644 (file)
@@ -28,12 +28,12 @@ TMPFILE="$(mktemp "$TMP/jarfinding.XXXXXX")"
 
 # locate all the archive files under the path.
 find "$dir" -iname "*.jar" -o -iname "*.zip" -o -iname "*.tar" \
-  -o -iname "*.iar" -o -iname "*.oar" -iname "*.bz2" \
+  -o -iname "*.iar" -o -iname "*.oar" -o -iname "*.bz2" -o -iname "*.snarf" \
   >"$TMPFILE"
 
-while read line; do
-  bash $FEISTY_MEOW_SCRIPTS/archival/listarch.sh "$line" 2>&1 | grep -i "$pattern" >/dev/null
-  if [ $? -eq 0 ]; then echo ==== Found pattern in $line ====; fi
+while read input_text; do
+  bash $FEISTY_MEOW_SCRIPTS/archival/list_arch.sh "$input_text" 2>&1 | grep -i "$pattern" >/dev/null
+  if [ $? -eq 0 ]; then echo ==== Found pattern in $input_text ====; fi
 done <"$TMPFILE"
 
 \rm -f "$TMPFILE"