We use plesk that's why its maillog file. Nightduke Hartmut Wernisch <[EMAIL PROTECTED]> escribió: On 01 Dec 07, night duke wrote: > Strange > > cat mail.log | grep DENIED | grep ".net" | grep joe > cat: mail.log: No found file or the directory in spanish No existe el fichero > o el directorio > What's wrong? > -rw-r----- 1 root adm 24M 2007-12-01 00:25 maillog
my log file name is "mail.log" yours is "maillog" :) -hartmut > > > Hartmut Wernisch escribió: > On 30 Nov 07, Grimmi Meloni wrote: > > Two things: > > > > -r makes grep work vice versa. So basically you are trying to find all > > on my linux pc > -r stands for recursive search, so not usefull in this case > -v makes invert matching > > > > lines that do NOT contain your pattern. The version of Hartmut fixes > > this, but '.net' might still not be sufficient. That´s because it says : > > > > Find me followed by the string "net" > > thats ofcause right :) > > > > > So if you are looking for .net Domains, I´d suggest you grep for: > > > > '\.net ' - be aware of the trailing blank after the t from net. So it > > now says: > > > > Find me the string (literally) ".net" followed by a blank. The blank is > > necessary so that it does not match strings like e.g. > > "[EMAIL PROTECTED] I´m not sure what spamdyke uses as seperator in > > it´s log messages, maybe you have to exchange the blank for some other > > character accordingly. > > > > Hope this helps you out. > > > > bye, Michael > > > > Hartmut Wernisch schrieb: > > > 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 > > >> > > > > > > > > > > > > > _______________________________________________ > > 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 --------------------------------- ¿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
