Re: [exim] search exim logs with input file, maybe csv ?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Jeremy Harris
Fecha:  
A: exim-users
Cc: jgh
Asunto: Re: [exim] search exim logs with input file, maybe csv ?
On 19/03/15 19:07, Marc Baasten wrote:
> Hello all,
>
> I have to look up allot of e-mail addresses in the log files, is it
> possible to feed exigrep with a input file ( maybe csv style ) with these
> e-mail addresses
> and have the output exported to a file.


Sounds like a simple shell loop to me, calling exigrep
>
> Or is possible to do this with a different tool than exigrep which leaves
> the exim format intact ?


... or just grep.


while read foo
do
egrep "$foo" mainlog >> output_file
done < file_with_names

--
Cheers,
Jeremy