Small REINPLACE_CMD headache...
Paul Schmehl
pauls at utdallas.edu
Wed Feb 9 18:41:00 PST 2005
--On Thursday, February 10, 2005 3:27 AM +0100 Danny Pansters
<danny at ricin.com> wrote:
> I get Syntax error: Unterminated quoted string
>
> I wanted to
> @${REINPLACE_CMD} -e \
> "s,\"machine/soundcard.h\",<sys/soundcard.h>," file
>
> It seems to go wrong there, what's the proper way to escape quotes in a
> s/x/y/ like this? It's included in double quotes (and wrong), I want to
> change it to a <blah> include.
>
Since you're using commas as the field limiters, wouldn't it be:
@${REINPLACE_CMD} -e \
"s,"machine/soundcard.h",<sys/soundcard.h>," file?
Paul Schmehl (pauls at utdallas.edu)
Adjunct Information Security Officer
The University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu
More information about the freebsd-ports
mailing list