[wplug] bash script need help

Zach netrek at gmail.com
Mon Dec 3 17:54:01 EST 2007


Hi,

I have a bash script I use to parse out email addresses from log
files, it doesn't work 100% but is good enough to seperate out most of
the wheat from the chaf! The problem is it is hardcoded to use one
filename at a time so I must keep editing the file, changing the
filename, saving script, running it, etc. Anyone know how I can make
this script work on any logfile so I can do: email-script.sh foo

email-script.sh:

grep @ /tmp/trekmsglog | grep -v @$ | grep -v \( | grep -vi bomb |
grep -v \! | grep -v ++ | grep -v crippled | grep -v "has no gas" | grep -v 4.4.
0.4 | grep -vi "clue game" | grep -v " @$" | grep -v Pick | grep -v Carrying | m
ore

Zach


More information about the wplug mailing list