[IMGate] making log searches readable

2005-01-29 Thread Len Conrad
a stupid little script for piping your egrep searches into, so instead of 
having tons of hard-to-read text, there is a blank line skipped after each 
search results line.

/usr/local/bin/skipline.sh

#!/bin/sh

awk '{print $0\n}'

exit 0

==

usage:

egrep -i pattern /var/log/maillog | skipline.sh | less

or

egrep -i pattern /var/log/maillog | skipline.sh | mail -s text [EMAIL 
PROTECTED]


you could rename to something shorter like skln, but keep it on your path.

There's probably an easier way, open to suggestions.

Len






[IMGate] Re: making log searches readable

2005-01-29 Thread Andrew P. Kaplan
Len Conrad wrote:
 a stupid little script for piping your egrep searches into, so instead of 

Nice script, I am used to the postfix format and going crazy with the 
crappy log output of Qmail, so I love the simplicity of the postfix logs.

All the best.


-- 
Andrew P. Kaplan
www.cshore.com


A New Year's resolution is something that goes in one year and out the 
other

author unknown


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005