Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Feb 2005 20:40:58 -0600
From:      Paul Schmehl <pauls@utdallas.edu>
To:        danny@ricin.com, ports@freebsd.org
Subject:   Re: Small REINPLACE_CMD headache...
Message-ID:  <2147483647.1107981658@[192.168.2.100]>
In-Reply-To: <200502100327.17768.danny@ricin.com>
References:  <200502100327.17768.danny@ricin.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--On Thursday, February 10, 2005 3:27 AM +0100 Danny Pansters 
<danny@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@utdallas.edu)
Adjunct Information Security Officer
The University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2147483647.1107981658>