0
#!/bin/sh
echo "Please enter your name here $RESPONSE!"
read RESPONSE
echo "Hello $RESPONSE, I will now create a new ${RESPONSE}_file for you"
touch ${RESPONSE}_file
echo "Would you like to remove this file. If yes, please enter in all lower 
case"
read RESPONSE
if ["$RESPONSE" == "yes"];
then
rm ${RESPONSE}_file
fi

Hello,

I think I'm a little misguided in accomplishing my goal here. Each time I run this script I get an error message that states the "yes: command not found" error. I understand the shell is not reading this as a string. Should I create another variable that stores the result? I really have no idea at the moment how to make this work. Your input is much appreciated.

0 Answers0