Hi All ,
Just a simple script . Trying to read 2 variables from user. And then replace the occurance of the first variable with the second one in a particular file /tmp/test.
But somehow (i guess so) the sed is not able to read the contents of a variable. ie. $orig and $name values.
Should be matter of some extra characters to be used in sed . Plz help.
echo "Put original word"
echo " Put your name "
cat /tmp/test | sed 's/$orig/$name/' > /tmp/test
tail /tmp/test/ -n 1