if loop is not working

Hello

i am trying to remove a line using an input file , but this depends upon user interaction

here is the sample

#!/bin/sh
echo "Please enter whether you want to remove Profile"
read value1
if [$value1="y"];then
sed /movie/d temp.txt> temp3.txt
else
echo "Script didnot remove profile"
fi

if the user hit the letter 'y' it should search the string movie from temp.txt and remove that line

Please help me on this .. The above code which i gave won't work as i new to unix shell scripting !!

i know there is no logic in using if statement is there anyother way to do this ???

Thanks!!

Spaces are important:

if [ $value1 = "y" ];then

Thanks!!!!:slight_smile: