Directory does not exist.
This is my code :
folder="Type Yes if you want to show all files."
echo -n "Enter yes or no: "
case "$x" in
y|Y|yes|Yes|YES ) return 0 ;;
n|N|no|No|NO ) return 1 ;;
* ) echo "Answer Yes or No :" ;;
if func [ -d /home/kenzo/script/Monday/ ] &&
echo "$1 $3 $2 $6"
ls -l /home/kenzo/script/Monday/
echo "Not execute."
It work well.
But I don't know how to show "Folder not exist" when I type Yes. (Monday folder does not exist in this case.)
Pls, help me to solve the problem. Thanks !