Hi, I'm a bit of sed n00b here.
My issue is as follows:
I'm trying to pass a variable to sed so that all instances of this variable (in a text file) will be replaced with nothing. However, the value of this variable will always be a folder location e.g. "C:\Program Files\Folder1"
I currently have
sed "s/$VAR1//g" file.txt > file_processed.txt
Unfortunately this isn't working. I have also tried
sed s/$VAR1//g file.txt > file_processed.txt
sed 's/'$VAR1'//g file.txt > file_processed.txt
I am also using Korn Shell.
Please be gentle with your responses *puts on flame-proof jacket*