This content has been marked as final. Show 1 reply
Can you please put your script between code tags as described in the forum FAQ?
sed -i '$a\##INC000010580362' /etc/fstabWhat is this command supposed to do? What are you trying to accomplish?
Single quotes (') surrounding a string normally prevent variable expansion. You may have to escape the $ sign using a slash (\) and double quotes ("). For instance:
$ echo "teststring" > testfile
$ sed -i 's\$a\##INC000010580362\g' testfile; cat testfile
$ sed -i "s\\$a\##INC000010580362\g" testfile; cat testfile
"send "sed -i '$a\##INC000010580362' /etc/fstab\r""To run a sed command from within an expect script, one normally uses the "spawn" command. Btw, sed -i will edit files in place and not return anything.