I want to delete a string from a file. This string is provided by the user. I tried the following command which didn’t work.
read -r input
sed -i '/"$input"/d' xyz.txt
I tried without double quotes("") as well. But it didn’t work.
Could you guys please help me?