Quote:
Originally Posted by Wolfclaw
Try passing the special characters with a \ in front.
On the other hand why not simply use regular expressions with sed or perl etc. ?
|
That's exactly what I was asking! I'm sure there's a simpler way of doing that... But
how?
I cannot pass the special characters with a backslash because my script reads the second argument character by character. So if $2 is "\#", the script will first try to replace \ (and it fails) then try to replace # (and it fails too).
Any other idea?