Consider the file shown below whose name is DRC.txtDRC.txt. The containcontents of the file is as below.are:
#############Actions################# set a [project $p get_action ICV_DRC] action $a set_parameter "ruledeck" action $a set_parameter "options"
#############Actions################# set a [project $p get_action ICV_DRC] action $a set_parameter "ruledeck" action $a set_parameter "options" Now I have one variable called ruledeck = /praj/test/drc_tsn/test1ruledeck = /praj/test/drc_tsn/test1. I need to append the value of this variable which is the path at the end of third line in the DRC.txt. I was trying to doingdo it using sed commandsed, but the path is not reflectedadded only thatthe variable is reflected. How can I solve the above problem?
sed -i -e '3s/$/"$ruledeck"/' DRC.txt
sed -i -e '3s/$/"$ruledeck"/' DRC.txt This command gives output as shown below. #############Actions################# set a [project $p get_action ICV_DRC] action $a set_parameter "ruledeck" $ruledeck action $a set_parameter "options":
#############Actions################# set a [project $p get_action ICV_DRC] action $a set_parameter "ruledeck" $ruledeck action $a set_parameter "options" I want Outputoutput like the below one. #############Actions################# set a [project $p get_action ICV_DRC] action $a set_parameter "ruledeck" /praj/test/drc_tsn/test1 action $a set_parameter "options"this instead:
#############Actions################# set a [project $p get_action ICV_DRC] action $a set_parameter "ruledeck" /praj/test/drc_tsn/test1 action $a set_parameter "options"