%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /scripts2/attic/
Upload File :
Create Path :
Current File : //scripts2/attic/search-ids-in-eximmailog

# /bin/bash

echo "Pattern to search: "
read SEARCH

cat /var/log/exim_mainlog | grep $SEARCH | cut --delimiter=' ' --fields=3 > /tmp/ids
zcat /var/log/exim_mainlog.*.gz | grep $SEARCH | cut --delimiter=' ' --fields=3 >> /tmp/ids

for id in `cat /tmp/ids`
do
	cat /var/log/exim_mainlog | grep $id 
	zcat /var/log/exim_mainlog.*.gz | grep $id 
done



Zerion Mini Shell 1.0