I am trying to use sed to replace a line with spaces with a defined variable.
For example,
I want to replace 'a dumb string' with $lan, and lan="~/afile.py
I assumed the line would be
sed "s/a dumb string/$lan/g" file.txt
but this leave the 'a dumb string' part blank in the file.txt.
My problem seems simple enough. Any help is much appreciated.