(perpetuating the useless use of cat and the hopelessly muddled top posting)
cat /var/log/maillog | egrep -i 'from=<.*@yahoo\.com>.*to=' -- Noel Jones On 2/11/2012 1:42 AM, kshitij mali wrote: > 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=<anythingh...@gmail.com <mailto:anythingh...@gmail.com>> 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 > <ralf.hildebra...@charite.de <mailto:ralf.hildebra...@charite.de>> > wrote: > > * kshitij mali <foreplay...@gmail.com > <mailto:foreplay...@gmail.com>>: > > Hi , > > > > how to trace email from particular domain i want to trace all > log from > > yahoo.com <http://yahoo.com> > > > > cat /var/log/maillog | egrep -i 'from=<*@yahoo.com > <http://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 <tel:%2B49%2030%20450%20570%20155> | > Fax: +49 30 450 570 962 <tel:%2B49%2030%20450%20570%20962> > ralf.hildebra...@charite.de > <mailto:ralf.hildebra...@charite.de> | http://www.charite.de > >