[ale] show distinct lines
Fletch
fletch at phydeaux.org
Wed Aug 21 11:43:41 EDT 2002
>>>>> "Cade" == Cade Thacker <linux at cade.org> writes:
[...]
Cade> I have the awk part working, so is there an easy command to
Cade> <take out the duplicates> cause I am then going to run
Cade> nslookup on these guys and see who is coming into the box,
Cade> and I don't want to see the same box fifteen times.
man uniq
man sort, look for -u
Or use perl rather than awk, stick things into a hash using
$seen{$_}++, and then use keys %seen to pull them back out.
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
770 933-0600 x211(w) | scary questions." -- Jules =(___)=
770 294-0820 (m) | U
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list