Virtual Planet wrote the following:
Subject: Much Big News #1234xxx
But how do you get that last word (which happens to be
a password) into a variable using sed??? What I need
is to be able to do something like
KEYWORD = `formail -x Subject|sed '???'`
...so that $KEYWORD will equal "#1234xxx" or better yet,
$KEYWORD will equal "1234xxx" (without the "#" trigger)
KEYWORD=`formail -x Subject | cut -f2 -d#`
Have fun 8)
--
CaT (cat(_at_)zip(_dot_)com(_dot_)au) URL:
http://zipper.zip.com.au/dev/null
Dehumansing the victim makes things simpler,
It's like breathing through a respirator.
It eases the conscience of even the most concious
And calculating violator. - "Language of Violence"
The Disposable Heroes of Hiphoprosy