reinplace question
Rainer Müller
raimue at macports.org
Fri Mar 20 08:06:30 PDT 2009
Jeremy Lavergne wrote:
> If I want to append a space and ampersand at the end of a known line,
> what's the way to write this in reinplace?
>
> I tried (without success):
> reinplace s|psppire|psppire &|g
> reinplace s|psppire|psppire\ &|g
> reinplace s|psppire|psppire\ \&|g
>
> Any suggestions?
You have to quote the replace pattern, otherwise &|g is interpreted as a
filename.
reinplace "s|psppire|psppire &|g" ...
Rainer
More information about the macports-dev
mailing list