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

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

Leave a comment

Your email address will not be published. Required fields are marked *