sed string replacements

Rainer Müller raimue at macports.org
Sat Jun 19 12:30:38 PDT 2010


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

Rainer


More information about the macports-dev mailing list