[NBLUG/talk] script assist
Bill Kendrick
nbs at sonic.net
Tue Jan 20 17:26:02 PST 2004
On Tue, Jan 20, 2004 at 05:22:12PM -0800, coop wrote:
> Need a hand here...
>
> I have a file which contains, $1 ( TCPIP address ) $2 user
>
> file |wc -l = 559
>
>
> however I know I am using only 482 addresses...
>
> So what I can see is that a machine was logged into by several people..
>
> so I want to have "fileout" with no repeating IP's.....
... | sort | uniq (or just "sort -u") might help.
... | sort | uniq -c will show you how many times different things repeat.
Good luck!
-bill!
bill at newbreedsoftware.com Got kids? Get Tux Paint!
http://newbreedsoftware.com/bill/ http://newbreedsoftware.com/tuxpaint/
More information about the talk
mailing list