[ale] show distinct lines

Cade Thacker linux at cade.org
Wed Aug 21 12:35:17 EDT 2002


PERFECT!!!!!! you guys rock!


--cade

On Linux vs Windows
==================
Remember, amateurs built the Ark, Professionals built the Titanic!
==================



On Wed, 21 Aug 2002, Geoffrey wrote:

>
>
> Cade Thacker wrote:
> > Sorry for the kinda easy question, but I am in a hurry and figures
> > somebody would know an easy answer to the question.
> >
> > netstat -an | grep ESTABLISHED | <run some awk to strip out everything but
> > the incoming ips and remove their port number> | <take out the duplicates>
> > | nslookup
>
> You could rid yourself of the grep by calling awk as:
>
> 'awk /ESTABLISHED/ {YOUR SCRIPT GOES HERE}'
>
> >
> > I have the awk part working, so is there an easy command to <take out
> > the duplicates> cause I am then going to run nslookup on these guys and
> > see who is coming into the box, and I don't want to see the same box
> > fifteen times.
>
> sort -u
>
> >
> > NOTE: I know I can run netstat -a and get the names, but the names are not
> > what I want exactly, so this will not work.
> >
> > TIA...
> >
> > --cade
> >
> > On Linux vs Windows
> > ==================
> > Remember, amateurs built the Ark, Professionals built the Titanic!
> > ==================
> >
> >
> >
> >
> > ---
> > 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.
> >
> >
>
>
> --
> Until later: Geoffrey		esoteric at 3times25.net
>
> I didn't have to buy my radio from a specific company to listen
> to FM, why doesn't that apply to the Internet (anymore...)?
>
>
> ---
> 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.
>
>


---
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