#! /bin/bash cd /home/douillet/docs/sys/ sort /etc/logfiles | sed -e "s/\ .*$// ; s/#// ; /^$/ d " > logfiles_tozip while read FILES do for FILE in $FILES do test -f $FILE || echo missing $FILE done done < logfiles_tozip > logfiles_not_found find /var/log -type f | grep -v ".gz" | sort > logfiles_existing kwrite logfiles_not_found exit for FILES in `cat logfiles_tozip` do if test ! -f $FILES then echo missing $FILES >> logfiles_not_found fi done