sed string replacements

Joshua Root jmr at macports.org
Sat Jun 19 12:39:48 PDT 2010


On 2010-6-20 05:30 , Rainer Müller wrote:
> On 2010-06-19 21:05 , Scott Haneda wrote:
>>     sed -e '/_VERSION_HEADER_/$VERSION_HEADER' DOCUMENTATION
>>     sed -e '/_TOKEN_/$DOWNLOAD' DOCUMENTATION
>>     sed -e '/_OTHER_TOKEN_/$ALT_DOWNLOAD' DOCUMENTATION
>               ^
> 
> You would need:
>       sed -e 's/_VERSION_HEADER_/$VERSION_HEADER/' DOCUMENTATION

Using single quotes here is also going to stop the variables from being
substituted.

- Josh


More information about the macports-dev mailing list