|
@@ -1,28 +1,33 @@
|
|
|
#!/bin/bash
|
|
|
-MEMEDIR=/mnt/disk5/meme
|
|
|
+MEMEDIR=/mnt/disk/meme
|
|
|
STERM='"'"${@:1}"'"'
|
|
|
-TMPFILE=`tempfile`
|
|
|
+TMPFILE=`mktemp`
|
|
|
+
|
|
|
+
|
|
|
echo grep -i $STERM $MEMEDIR/1990s -r >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/0/2/booksread >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/0/3/booksread.txt >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/0/5/booksread >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/0/6/books-read-2006 >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/0/7/books-read-2007 >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/0/8/booksread >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/0/9/booksread >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/1/0/booksread >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/1/1/booksread >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/1/2/booksread >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/1/3/alreadyread.txt >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/1/4/alreadyread.txt >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/1/5/alreadyread.txt >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/1/6/alreadyread.txt >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/1/7/alreadyread.txt >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/1/8/alreadyread.txt >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/1/9/alreadyread.txt >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/2/0/alreadyread.txt >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/2/1/alreadyread.txt >> $TMPFILE
|
|
|
-echo grep -i $STERM $MEMEDIR/20/2/2/alreadyread.txt >> $TMPFILE
|
|
|
+echo grep -i $STERM $MEMEDIR/*/*/*/{booksread,booksread.txt,books-read-*,alreadyread.txt} >> $TMPFILE
|
|
|
+echo grep -i $STERM /home/themusicgod1/alreadyread.txt >> $TMPFILE
|
|
|
+
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/0/3/booksread.txt >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/0/5/booksread >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/0/6/books-read-2006 >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/0/7/books-read-2007 >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/0/8/booksread >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/0/9/booksread >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/1/0/booksread >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/1/1/booksread >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/1/2/booksread >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/1/3/alreadyread.txt >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/1/4/alreadyread.txt >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/1/5/alreadyread.txt >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/1/6/alreadyread.txt >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/1/7/alreadyread.txt >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/1/8/alreadyread.txt >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/1/9/alreadyread.txt >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/2/0/alreadyread.txt >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/2/1/alreadyread.txt >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/2/2/alreadyread.txt >> $TMPFILE
|
|
|
+#echo grep -i $STERM $MEMEDIR/20/2/3/alreadyread.txt >> $TMPFILE
|
|
|
|
|
|
chmod 755 $TMPFILE
|
|
|
$TMPFILE
|