Re: Command grep -

2013-04-12 Thread Patrick O'Callaghan
On Fri, 2013-04-12 at 15:24 -0400, Bob Goodwin - Zuni, Virginia, USA wrote: > It's not clear to me what that should do but it produces a long list, > not in the form I need? I just want to filter [view] DST=17.*. > > less syslog.txt | grep "DST=17\." does that and solves my immediate > need. As

Re: Command grep -

2013-04-12 Thread Bob Goodwin - Zuni, Virginia, USA
On 12/04/13 16:13, poma wrote: less syslog.txt | grep "DST=17\." does that and solves my immediate need. A long list - a two IP addresses!? :) Well, if you don't need this *short* IP addresses output .i.e. for a 'whois'[1] so you can parse the required IP range i.e. for a net filter, nonetheless

Re: Command grep -

2013-04-12 Thread poma
On 12.04.2013 21:24, Bob Goodwin - Zuni, Virginia, USA wrote: > It's not clear to me what that should do but it produces a long list, > not in the form I need? I just want to filter [view] DST=17.*. > > less syslog.txt | grep "DST=17\." does that and solves my immediate need. A long list - a two

Re: Command grep -

2013-04-12 Thread Bob Goodwin - Zuni, Virginia, USA
On 12/04/13 14:02, poma wrote: "clouds"?:) awk '{print $11}' syslog.txt | uniq DST=17.171.4.13 DST=174.35.3.56 or awk '{sub("DST=","",$11); print $11}' syslog.txt | uniq 17.171.4.13 174.35.3.56 man 1 gawk man 1 uniq poma It's not clear to me what that should do but it produces a long list,

Re: Command grep -

2013-04-12 Thread poma
On 12.04.2013 19:27, Bob Goodwin - Zuni, Virginia, USA wrote: > On 12/04/13 13:04, Reindl Harald wrote: >> Am 12.04.2013 18:31, schrieb Bob Goodwin - Zuni: >>> > >>> > If I do "less syslog.txt | grep DST=17." I get a mixture of outputs >>> containing "17." >> escaping and quotes are your friend >>

Re: Command grep -

2013-04-12 Thread Bob Goodwin - Zuni, Virginia, USA
On 12/04/13 13:04, Reindl Harald wrote: Am 12.04.2013 18:31, schrieb Bob Goodwin - Zuni: > > If I do "less syslog.txt | grep DST=17." I get a mixture of outputs containing "17." escaping and quotes are your friend less syslog.txt | grep "DST=17\." Thanks much, I messed with that for an hou

Re: Command grep -

2013-04-12 Thread Suvayu Ali
On Fri, Apr 12, 2013 at 07:04:43PM +0200, Reindl Harald wrote: > > > Am 12.04.2013 18:31, schrieb Bob Goodwin - Zuni: > > > > If I do "less syslog.txt | grep DST=17." I get a mixture of outputs > > containing "17." > > escaping and quotes are your friend > less syslog.txt | grep "DST=17\." Is

Re: Command grep -

2013-04-12 Thread Reindl Harald
Am 12.04.2013 18:31, schrieb Bob Goodwin - Zuni: > > If I do "less syslog.txt | grep DST=17." I get a mixture of outputs > containing "17." escaping and quotes are your friend less syslog.txt | grep "DST=17\." signature.asc Description: OpenPGP digital signature -- users mailing list use

Command grep -

2013-04-12 Thread Bob Goodwin - Zuni, Virginia, USA
If I do "less syslog.txt | grep DST=17." I get a mixture of outputs containing "17." I would like to do "less syslog.txt | grep 17.0.0.0 - 17.255.255.255" or "less syslog.txt | grep DST=17.0.0.0/8" but I can't find the correct incantation. The man page doesn't seem to tell me how, at least n