On Tue, 22 Aug 2000, Howard Lowndes wrote:
> This is an example of a script I am trying to put together:
> 
> #!/bin/sh
> PATH=/bin:/sbin:/usr/bin:/usr/sbin
> . /etc/site-params
> ssed -e 's/CHARS/$CHARS/g' this.file
> 
> 
$CHARS is not being expanded when enclosed within single quotes.

try:
sed -e "s?CHARS?$CHARS?g"


--
Jim


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to