----- Original Message -----
From: "Serge" <[EMAIL PROTECTED]>
> Here is a line that will give me all sessions from a user:
>
> grep "MAIL FROM:[EMAIL PROTECTED]" D:\log1104.txt | gawk "{print $5}" |
uniq
> > test.txt
>
> Now how do I use a pipe or a batch file to get all the lines for all these
> sessions in a single file ?
> (this is Imail syslog logs)
Use a double pipe ">>" and each additional like will be appended to the end
of the file:
grep "MAIL FROM:[EMAIL PROTECTED]" D:\log1104.txt | gawk "{print $5}" | uniq
>> test.txt
Bill
---
[This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)]
---
This E-mail came from the Declude.JunkMail mailing list. To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.JunkMail". The archives can be found
at http://www.mail-archive.com.