hi Ralf , Thanks for help me .
with the below expression its is showing me the logs for both "from=< " and "to=<" logs what i wanted was only match the expression from each like only from=<[email protected]> lines i know this will be tricky i m to trying to solve this expression if u can then pls help. Regards, Kshitij Mali On Fri, Feb 10, 2012 at 12:58 PM, Ralf Hildebrandt < [email protected]> wrote: > * kshitij mali <[email protected]>: > > Hi , > > > > how to trace email from particular domain i want to trace all log from > > yahoo.com > > > > cat /var/log/maillog | egrep -i 'from=<*@yahoo.com' > > cat /var/log/maillog | egrep -i 'from=<.*@yahoo\.com>' > > -- > Ralf Hildebrandt > Geschäftsbereich IT | Abteilung Netzwerk > Charité - Universitätsmedizin Berlin > Campus Benjamin Franklin > Hindenburgdamm 30 | D-12203 Berlin > Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 > [email protected] | http://www.charite.de > >
