I am writing a bash script to achieve the output of replacing the content in abc.txt file
#! /bin/bash/
echo "Please write the file name"
read file
old = "abc"
new = "bcd"
sed -i "s/$old/$new/g" $file
output: I am not getting the result. Please let me know where I did mistakes?