#!/bin/bash
echo -n "Is it morning? please input yes or no: "
read yesorno
if "$yesorno" = y*
then
echo "Good morning"
elif [ "$yesorno" = "no" ] || [ "$yesorno" = "NO" ]
then
echo "Good afternoon"
else
echo "wrong input"
fi
exit 0
2.
#!/bin/bash
rm -f myFile.txt
if [ -f myFile.txt ]; then
:
else
echo "myFile.txt does not exist!"
fi
exit 0