#!/bin/csh -f set ignore = calefon set joum = /home/inst/mandel/cgi-logs echo Content-type: text/html echo "" cat << EOF Visitantes EOF if($#argv == 0) then cat << EOF

Usuarios que han accedido en el día de hoy


"}' echo "
Fecha Internet Address Host-id Client EOF set fecha = `tail -1 $joum/argentina.log | awk '{ print $1}'` grep -v $ignore $joum/argentina.log |\ grep $fecha |\ awk -F\t '{print "
" $1 "" $2 "" $3 "" $4 "
" echo "
" echo "" echo -n "Total del dia: " grep -v $ignore $joum/argentina.log | grep -c $fecha echo "
" echo -n "Numero total de clientes: " cat $joum/argentina.count else cat << EOF

Usuarios que hacen matching con $1


"}' echo "
Clientes atendidos
Fecha Internet Address Host-id Client EOF grep -v $ignore /home/inst/mandel/cgi-logs/argentina.log |\ grep -i "$1" |\ awk -F\t '{print "
" $1 "" $2 "" $3 "" $4 "
" echo "" echo -n "Numero total: " grep -v $ignore /home/inst/mandel/cgi-logs/argentina.log |\ grep -ci "$1" endif cat << EOF
Luis Mandel, all rights reserved. Copyright ©. Page design Copyright © 93-96.
EOF