a combo of wc and awk/sed can do it as well... ...we got a bb script that does something similar for printers, but it doesn't re-write the file (it writes to another file), although having it re-write the file shouldn't be too diff -----Original Message----- From: David Demland [mailto:demland@home.com] Sent: Friday, July 07, 2000 10:36 PM To: PLUG Discuss Subject: Port Probes Again I have been getting a lot of port probes each day. To the point that I am getting 100 + Meg log file. I would like to write a script that will parse out only the single unique IP from the file. I know I can use grep to get the lines, but how do I get the unique IP from these greped lines? David