I have 2 variables in a script
I have a file with output like this:
/home/matt is stored in $base_dir which
does not necessarily have to hold /home/matt.
I want to replace /home/matt with the contents of $install_dir
Using sed i thought it would look like this:
sed 's/$base_dir/$install_dir/g' myfile1 >myfile2
but it doesn't work. (i don't think sed accepts variables)
How can it be done??