#!/bin/sh
#cd www/news/meteo
# 2/3 of the images downloaded with lynx each hour are the same. 
# This script deletes the duplicates
ls -l $1 | awk '{print $5}' > new 
a=`cat last`
b=`cat new`
if [ $a == $b ]
then
#   echo "same" $b
   rm -f $1
#else
#   echo "different" $b
fi
mv -f new last
wait
 