procmail
[Top] [All Lists]

Re: VARIABLE=result of sed?

1997-07-13 18:01:00
Mitsuru Furukawa <furu(_at_)009(_dot_)com> wrote:

Mitsuru> I want to extract header part and sed it and put into $HEAD.
Mitsuru> So I wrote:
Mitsuru> 
Mitsuru>   :0hc
Mitsuru>    HEAD=`$FORMAIL -X "" |sed -e 's/</\&lt;/g'`
Mitsuru>  
Mitsuru> The log shows sed is working as expected, but $HEAD is empty.
Mitsuru> So, I tried following recipe. 
Mitsuru> 
Mitsuru>   :0hc
Mitsuru>    HEAD=|$FORMAIL -X "" |sed -e 's/</\&lt;/g'
Mitsuru>    $HEAD
Mitsuru> 
Mitsuru> It seems to be working, but I don't feel comfortable:-<
Mitsuru> Please tell me the right way.
Mitsuru> Or is it a right way?

Answering to myself> just get rid of $HEAD.
Sorry for the bandwidth.

_/_/_/      Mitsuru FURUKAWA      _/_/_/
_/_/_/        Tokyo, Japan        _/_/_/
_/_/_/     mailto:furu(_at_)009(_dot_)com    _/_/_/
_/_/_/  http://www.009.com/furu/  _/_/_/

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