I am trying to execute send "sed -e\'s/%\([0-9A-F][0-9A-F]\)/\\\\\x\1/g\' test_log"
from within the spawn but it is throwing me this error:
bash-4.1$ invalid command name "0-9A-F"
while executing
"0-9A-F"
invoked from within
"send "sed -e\'s/%\([0-9A-F][0-9A-F]\)/\\\\\x\1/g\' test_log""
(file "./test.sh" line 19)
I have added \
too for escape character in sed
, but still it is not working.
What am I missing here?