Help required for sed command.
I want a replacement of line at perticular line number
say Number = 5 and Variable = abc whenever i execute the following command line 5 get replaced with $Variable but not abc. What is wrong in below code Code:
sed -e "$Number c\$Variable" vm.cfg > tmp |
Put two slashes
Hi
You should put two slashes to prevent escape of $ Code:
sed -e "$Number c\\$Variable" vm.cfg > tmp -indiajoe |
All times are GMT -5. The time now is 02:13 AM. |