#!/bin/tcsh -f # fmb, 20001129, 20040922, 20090921 #set LOG=/usr/local/etc/NCSAhttpd/logs/access_log #set LOG=/etc/httpd/logs/access_log set LOG=/var/log/apache2/access.log # OJO, tiene permisos 640, no 644! set TMP = /tmp/taf.$$ grep 'fmb/cine\.html' $LOG | sed 's/\</g' >! $TMP set WC = `cat $TMP | wc -lc` set NL = `echo $WC | cut -d' ' -f1` set NB = `echo $WC | cut -d' ' -f2` echo "Content-type: text/html" echo "" echo "" echo "
" echo "
"
echo ""
echo ""
cat $TMP
echo "
"
echo ""
echo ""
echo ""
rm $TMP