Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # flvcache script
- CACHE=~/.mozilla/firefox/xxxxxxxx.default/Cache
- OUTPUTDIR=~/Videos/flvs
- MINFILESIZE=2M
- for f in `find $CACHE -size +$MINFILESIZE`
- do
- a=$(file $f | cut -f2 -d ' ')
- o=$(basename $f)
- if [ "$a" = "Macromedia" ]
- then
- cp "$f" "$OUTPUTDIR/$o"
- fi
- done
- nautilus "$OUTPUTDIR"&
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement