On Fri, 2 Mar 2001, Timothy J. Luoma wrote:
I think I've successfully written a procmail/sed script which will take a Fare
Watcher update (from Travelocity.com) and forward just the important part to a
pager.
Forwarded for the benefit of others who might like it, plus those who might
error-check it ;-)
Egad. What a lot of extra processes.
sed -n -e '/^\*/,/^$/{;\
/PRICE/d;\
/----/d;\
s/^ */ /;\
s/.*FROM: /From /;\
s/ TO: */ to /;\
s/ *(...)//;\
s/\.00 *\$/ was \$/;\
s/\.00.*//;\
p;}' | tr -d '\012'
Note: make sure your version of sed will handle adding a newline with
\n.... my understanding is that GNU version 3.02.80 is the first version
that did that
Not necessary with the above.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail