Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- echo "Abholen der Spambilder von zrabike.info"
- echo
- tf1=`mktemp`
- tf2=`mktemp`
- trap "rm -f $tf1 $tf2" 1 2 15
- cd /home/elias/archiv/spam
- ls zrabike.info/images/ | sed /\.html/d >$tf1
- wget -m -nv http://zrabike.info/images/
- ls zrabike.info/images/ | sed /\.html/d >$tf2
- z1=`wc -l $tf1 | sed 's/ .*$//'`
- z2=`wc -l $tf2 | sed 's/ .*$//'`
- if [ "$z1" -eq "$z2" ]
- then
- echo Es sind keine Dateien hinzugekommen
- else
- echo Es sind `expr $z2 - $z1` neue Dateien hinzugekommen
- diff $tf1 $tf2 | grep "^>" | sed "s/^> //"
- fi
- rm -f $tf1 $tf2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement