SLUG Mailing List Archives
[SLUG] sed help please
- To: Mail List - SLUG <slug@xxxxxxxxxxx>
- Subject: [SLUG] sed help please
- From: Howard Lowndes <lannet@xxxxxxxxxxxxx>
- Date: Tue Aug 22 13:12:03 2000
This is an example of a script I am trying to put together:
sed -e 's/CHARS/$CHARS/g' this.file
Line 3 puts the variable CHARS into the local environment. What I then
want the sed to do is to run thru this.file and replace all occurences of
the string CHARS with the value of the variable $CHARS.
All it achieves though is to replace the string CHARS with the string
$CHARS, which is not what I want.
Can someone please suggest (politely) what I should do here.
LANNet Computing Associates <http://www.lannet.com.au>