I have read other articles but I can't manage to found the solution to this problem. I am running the shell script on a Ubuntu terminal.
del2.sh:
echo "Subject Deletion"
echo "Enter 0 to return to Main Menu"
echo -n "Enter subject name to delete it"
read name1
if [ "$name1" == "0" ]
then
echo - n "No changes made"
exit 0
else rm $name.txt
fi
Terminal: