sajad torkamani
directory="/path/to/directory"

if [ -d "$directory" ]; then
  echo "The directory exists."
else
  echo "The directory does not exist."
fi
Tagged: Bash