Re: awk usage question

2003-05-30 Thread Kevin Mark
On Thu, 2003-05-29 at 20:19, Kevin Coyner wrote: > I'm trying to filter a file from tcpdump (actually tethereal) using awk, > but am stuck in one spot. > > In words, what I'd like to do is: > > 1. only read lines with the word "Message" in it > 2. in lines with "Message", output everyt

Re: awk usage question

2003-05-30 Thread Jan Trippler
On Don, 29 Mai 2003 at 20:19 (-0400), Kevin Coyner wrote: > > I'm trying to filter a file from tcpdump (actually tethereal) using awk, > but am stuck in one spot. > > In words, what I'd like to do is: > > 1. only read lines with the word "Message" in it > 2. in lines with "Message", ou

Re: awk usage question

2003-05-30 Thread Karsten M. Self
on Thu, May 29, 2003 at 10:52:50PM -0400, Kevin McKinley ([EMAIL PROTECTED]) wrote: > On Thu, 29 May 2003 22:00:28 -0400 > David Z Maze <[EMAIL PROTECTED]> wrote: > > > Kevin Coyner <[EMAIL PROTECTED]> writes: > > > > > I'm trying to filter a file from tcpdump (actually tethereal) using awk, > >

Re: awk usage question

2003-05-30 Thread Kevin McKinley
On Thu, 29 May 2003 22:00:28 -0400 David Z Maze <[EMAIL PROTECTED]> wrote: > Kevin Coyner <[EMAIL PROTECTED]> writes: > > > I'm trying to filter a file from tcpdump (actually tethereal) using awk, > > but am stuck in one spot. > > > > In words, what I'd like to do is: > > > > 1. only read li

Re: awk usage question

2003-05-30 Thread Kevin Coyner
On Thu, May 29, 2003 at 07:41:46PM -0500, Alan Shutko wrote.. > Kevin Coyner <[EMAIL PROTECTED]> writes: > > > 1. only read lines with the word "Message" in it > > 2. in lines with "Message", output everything to the right of the > > word "Message". This could be one word

Re: awk usage question

2003-05-30 Thread David Z Maze
Kevin Coyner <[EMAIL PROTECTED]> writes: > I'm trying to filter a file from tcpdump (actually tethereal) using awk, > but am stuck in one spot. > > In words, what I'd like to do is: > > 1. only read lines with the word "Message" in it > 2. in lines with "Message", output everything to th

Re: awk usage question

2003-05-30 Thread Alan Shutko
Kevin Coyner <[EMAIL PROTECTED]> writes: > 1. only read lines with the word "Message" in it > 2. in lines with "Message", output everything to the right of the > word "Message". This could be one word or twenty words. awk '/Message/ { print substr($0, index($0, "Message")+lengt

awk usage question

2003-05-30 Thread Kevin Coyner
I'm trying to filter a file from tcpdump (actually tethereal) using awk, but am stuck in one spot. In words, what I'd like to do is: 1. only read lines with the word "Message" in it 2. in lines with "Message", output everything to the right of the word "Message". This could be