case $f in
*.gz) zcat -f $f;;
*.bz2) bzcat -f $f;;
*.xz) xzcat -f $f;;
esac
done
[ -f ${LOG}/messages ] && cat $LOG/messages