Re: Concurrent users logged in

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 29 Mar 1999 22:27:08 +0200

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
Received on Mon Mar 29 1999 - 14:20:21 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:45:34 MST