和保存图片一样,简单起见只有一个文件:webfilm.bash
#!/bin/bash
#copyright by lingbofeiyun
#This shell script is to search for firefox Cache and save film to~/Videos
cd /home/yxy/.mozilla/firefox/700doz1r.default/Cache
loops() {
for film in *
do
if [ -d $film ]
then
cd $film
loops
cd ..
elif [ -f $film ]
then
message=$(file $film|grep "Flash Video")
if [ -n "$message" ]
then
cp $film /home/yxy/Videos/Webcam
message=""
fi
fi
done
}
loops
exit 0
还有一个script用来清空firefox的Cache文件夹下面的内容,so easy
webclear.bash
#!/bin/bash
#copyright by lingbofeiyun
#This shell script is to clear firefox Cache
cd /home/yxy/.mozilla/firefox/700doz1r.default/Cache
rm -fr *
exit 0
#!/bin/bash
#copyright by lingbofeiyun
#This shell script is to search for firefox Cache and save film to~/Videos
cd /home/yxy/.mozilla/firefox/700doz1r.default/Cache
loops() {
for film in *
do
if [ -d $film ]
then
cd $film
loops
cd ..
elif [ -f $film ]
then
message=$(file $film|grep "Flash Video")
if [ -n "$message" ]
then
cp $film /home/yxy/Videos/Webcam
message=""
fi
fi
done
}
loops
exit 0
还有一个script用来清空firefox的Cache文件夹下面的内容,so easy
webclear.bash
#!/bin/bash
#copyright by lingbofeiyun
#This shell script is to clear firefox Cache
cd /home/yxy/.mozilla/firefox/700doz1r.default/Cache
rm -fr *
exit 0