[techtalk] help with sorting text in a file

alissa bader mol666 at yahoo.com
Fri May 12 10:43:59 EST 2000


--- srl <slandrum at cs.smith.edu> wrote:
 
> what part of the line do you need to grab, other
> than QAA?
> got some sample data?

actually I needed to grab a particular string.  For
example,  all patterns matching QAA:

May 11 23:59:57 smtp-out sendmail[7569]: QAA14179:
to=<joe_8 at goplay.com>, delay=
07:45:25, xdelay=00:00:01, mailer=esmtp,
relay=mx1.onmedia.com. [209.133.35.49],
 stat=Deferred: Illegal seek
May 11 23:59:56 smtp-out sendmail[7569]: QAA14169:
to=<joe_8 at goplay.com>, delay=
07:45:29, xdelay=00:00:01, mailer=esmtp,
relay=mx1.onmedia.com. [209.133.35.49],
 stat=Deferred: Illegal seek

anyway the easiest way to do this (and the way I did
it before but forgot :>) was to use a "cut" on this
file. (and someone on this list mailed me about "cut!"
:>) Since everything I was looking for was in the same
place on each line.

thanks again for everyone's help with this!

--alissa



__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/





More information about the Techtalk mailing list