On 01 Dec 07, night duke wrote:
> Can i do that with perl?

Maybe you would use something like that (in one command line!):

grep DENIED maillog | perl -ne 'm/([EMAIL PROTECTED])/; print "$1\n" if $1'


-hartmut

>    
>   Thanks a lot anyway.
>    
>   Nightduke
> 
> Hartmut Wernisch <[EMAIL PROTECTED]> escribió:
>   
> On 30 Nov 07, night duke wrote:
> > Hi i'm trying to find what emails are blocked from .net domain...
> > 
> > I do 
> > cat maillog | grep DENIED | grep -r .\*.net | grep joe
> > 
> > But it shows emails blocked from .net .com .de .co.uk etc...
> > 
> > Does anyone know a way to use grep to find email address from a file?
> 
> cat mail.log | grep DENIED | grep ".net" |grep joe
> 
> Maybe you want to use perl to be more flexible with pattern matching?
> 
> best,
> Hartmut Wernisch
> 
> > 
> > Thanks a lot
> > 
> > Nightduke
> > 
> > 
> > 
> > 
> > 
> > ---------------------------------
> > 
> > ¿Chef por primera vez? - Sé un mejor Cocinillas.
> > Entra en Yahoo! Respuestas.
> 
> > _______________________________________________
> > spamdyke-users mailing list
> > [email protected]
> > http://www.spamdyke.org/mailman/listinfo/spamdyke-users
> 
> 
> -- 
> DI Hartmut Wernisch
> Technischer Leiter (CIO) Domaintechnik.at
> email: [EMAIL PROTECTED] Wiener Strasse 2
> www: www.domaintechnik.at A-5202 Neumarkt/Wallersee
> _______________________________________________
> spamdyke-users mailing list
> [email protected]
> http://www.spamdyke.org/mailman/listinfo/spamdyke-users
> 
> 
>        
> ---------------------------------
> 
> ¿Chef por primera vez? - Sé un mejor Cocinillas.
> Entra en Yahoo! Respuestas.

> _______________________________________________
> spamdyke-users mailing list
> [email protected]
> http://www.spamdyke.org/mailman/listinfo/spamdyke-users


-- 
DI Hartmut Wernisch
Technischer Leiter (CIO)                    Domaintechnik.at
email: [EMAIL PROTECTED]                  Wiener Strasse 2
www:   www.domaintechnik.at                 A-5202 Neumarkt/Wallersee
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users

Reply via email to