- To: Sydney Linux Users Group <slug@xxxxxxxxxxx>
- Subject: Re: [SLUG] sed help please
- From: Ken Yap <ken@xxxxxxxxxx>
- Date: Tue Aug 22 14:49:54 2000
- Reply-to: ken@xxxxxxxxxx (Ken Yap)
>Yes, the s/'/"/g was an error, but the true problem was that there was a
>"/" character in one of the variables being substituted in and the regexp
>was getting confused over that.
This is why it's important to report the exact problem. If you had had
an extra / in the s command, sed would have said something like bad
expression. If the problem had been 's you would have had $CHAR all over
the output.