Henrik Nordstrom wrote:

> One example of a such command:
>  ; tail -c 100000
> /usr/local/squid/logs/access.log | read junk | awk '{print $8 $3}' |
> sort -u

Oops.. When will I learn to not type complex command lines in a mail
message without testing the syntax first?

-- CUT HERE --
#!/bin/sh
amount=100000
accesslog=/usr/local/squid/logs/access.log
echo "username ip-address"
tail -c $amount $accesslog | ( read junk ; awk '{print $8,$3}' | sort -u
)
-- CUT HERE --

--
Henrik Nordstrom
Spare time Squid hacker

Reply via email to