Re: [Declude.JunkMail] LOG Levels

2004-11-06 Thread Serge
Bill and All 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) TIA

Re: [Declude.JunkMail] LOG Levels

2004-11-06 Thread Bill Landry
- 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

[Declude.JunkMail] Suggestion: Most stringent test

2004-11-06 Thread marc catuogno
Or some other name if it is possible - I'd like to stop e-mails from being whitelisted because my users have their own name in their address book and someone sends to multiple people as one of my users. Also I'd like to stop e-mails being delivered to multiple recipients because one person has

Re: [Declude.JunkMail] LOG Levels

2004-11-06 Thread Serge
Sorry, i may not expressed myself I need to grep %variable% ... Where the variable takes all the values generated by the first grep: grep MAIL FROM:[EMAIL PROTECTED] D:\log1104.txt | gawk {print $5} | uniq Should i use some kind of FOR instruction in a Windows batch file ? Or is there a way to

Re[2]: [Declude.JunkMail] LOG Levels

2004-11-06 Thread Sanford Whiteman
Should i use some kind of FOR instruction in a Windows batch file ? Sure: FOR /F %%I IN (file_with_session_IDs) DO grep %%I log_file_name All could be compressed into a one-liner, but that isn't necessary. --Sandy Sanford

Re: [Declude.JunkMail] LOG Levels

2004-11-06 Thread Bill Landry
- Original Message - From: Serge [EMAIL PROTECTED] Sorry, i may not expressed myself I need to grep %variable% ... Where the variable takes all the values generated by the first grep: grep MAIL FROM:[EMAIL PROTECTED] D:\log1104.txt | gawk {print $5} | uniq Should i use some kind

Re: [Declude.JunkMail] LOG Levels

2004-11-06 Thread Bill Landry
- Original Message - From: Serge [EMAIL PROTECTED] Sorry, i may not expressed myself I need to grep %variable% ... Where the variable takes all the values generated by the first grep: grep MAIL FROM:[EMAIL PROTECTED] D:\log1104.txt | gawk {print $5} | uniq Should i use some kind

Re: [Declude.JunkMail] LOG Levels

2004-11-06 Thread Serge
bill sandy thank you both both method worked no limit to what one can do with these tools - Original Message - From: Bill Landry [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 06, 2004 11:27 PM Subject: Re: [Declude.JunkMail] LOG Levels - Original Message -