; $CHARS is not being expanded when enclosed within single quotes.
; 
; try:
; sed -e "s?CHARS?$CHARS?g"

firstly, you don't need the -e. secondly, there's no need for an
alternate pattern/replacement seperator, sed is smart enough to
recognise that when '$' is followed by something, it doesn't denote 
end of line.

r.


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

Reply via email to