Code: Select all
cat /var/log/exim4/mainlog | exigrep "<= [email protected]"
cat /var/log/exim4/mainlog.1 | exigrep "<= [email protected]"
zcat /var/log/exim4/mainlog*.gz | exigrep "<= [email protected]"
Code: Select all
touch mylog.txt
cat /var/log/exim4/mainlog | exigrep "<= [email protected]" >> mylog.txt
cat /var/log/exim4/mainlog.1 | exigrep "<= [email protected]" >> mylog.txt
zcat /var/log/exim4/mainlog*.gz | exigrep "<= [email protected]" >> mylog.txt