postfix-users

Re: Log file and grep

Subject: Re: Log file and grep
From: Evan Platt <evan AT espphotography DOT com>
To: postfix-users AT postfix DOT org
Date: Thu, 09 Aug 2007 16:59:22 -0700
At 03:55 PM 8/9/2007, Daryl wrote:
Greetings,
Could someone be very kind..... and tell me a grep command, that would show me the date,from,to information in my mail.log file and pass that info into a file

Sorry!

grep searches for a 'string'. So what string would you like to find?

# grep 07:15 /var/log/mail.log

Will search /var/log/mail.log for anthing with 07:15 in it.

# grep 07:15 /var/log/mail.log >/temp/test

puts the output to /temp/test.


<Prev in Thread] Current Thread [Next in Thread>