I am new to sed. What is wrong with the sed command on deleting the line which matches the input data?InputData.txt123,1234,1453,Datatodelete.txt1234,hellofirstline123,hellosecondline14676,hellothirdline1453,hellofourthlineexpected output in the Datatodelete.txt14676,hellothirdlineScript:echo the script starts nowwhile read EachLinedo  echo $EachLine  sed /$EachLine/d < /home/Datatodelete.txt >/home/dummydone < /home/InputData.txt
How to delete a line with variable search using sed command
shell script;sed