did-I-read-this 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. MEMEDIR=/mnt/disk/meme
  3. STERM='"'"${@:1}"'"'
  4. TMPFILE=`mktemp`
  5. echo grep -i $STERM $MEMEDIR/1990s -r >> $TMPFILE
  6. echo grep -i $STERM $MEMEDIR/*/*/*/{booksread,booksread.txt,books-read-*,alreadyread.txt} >> $TMPFILE
  7. echo grep -i $STERM /home/themusicgod1/alreadyread.txt >> $TMPFILE
  8. #echo grep -i $STERM $MEMEDIR/20/0/3/booksread.txt >> $TMPFILE
  9. #echo grep -i $STERM $MEMEDIR/20/0/5/booksread >> $TMPFILE
  10. #echo grep -i $STERM $MEMEDIR/20/0/6/books-read-2006 >> $TMPFILE
  11. #echo grep -i $STERM $MEMEDIR/20/0/7/books-read-2007 >> $TMPFILE
  12. #echo grep -i $STERM $MEMEDIR/20/0/8/booksread >> $TMPFILE
  13. #echo grep -i $STERM $MEMEDIR/20/0/9/booksread >> $TMPFILE
  14. #echo grep -i $STERM $MEMEDIR/20/1/0/booksread >> $TMPFILE
  15. #echo grep -i $STERM $MEMEDIR/20/1/1/booksread >> $TMPFILE
  16. #echo grep -i $STERM $MEMEDIR/20/1/2/booksread >> $TMPFILE
  17. #echo grep -i $STERM $MEMEDIR/20/1/3/alreadyread.txt >> $TMPFILE
  18. #echo grep -i $STERM $MEMEDIR/20/1/4/alreadyread.txt >> $TMPFILE
  19. #echo grep -i $STERM $MEMEDIR/20/1/5/alreadyread.txt >> $TMPFILE
  20. #echo grep -i $STERM $MEMEDIR/20/1/6/alreadyread.txt >> $TMPFILE
  21. #echo grep -i $STERM $MEMEDIR/20/1/7/alreadyread.txt >> $TMPFILE
  22. #echo grep -i $STERM $MEMEDIR/20/1/8/alreadyread.txt >> $TMPFILE
  23. #echo grep -i $STERM $MEMEDIR/20/1/9/alreadyread.txt >> $TMPFILE
  24. #echo grep -i $STERM $MEMEDIR/20/2/0/alreadyread.txt >> $TMPFILE
  25. #echo grep -i $STERM $MEMEDIR/20/2/1/alreadyread.txt >> $TMPFILE
  26. #echo grep -i $STERM $MEMEDIR/20/2/2/alreadyread.txt >> $TMPFILE
  27. #echo grep -i $STERM $MEMEDIR/20/2/3/alreadyread.txt >> $TMPFILE
  28. chmod 755 $TMPFILE
  29. $TMPFILE
  30. echo $TMPFILE
  31. # rm $TMPFILE