#!/bin/bash read -ep "Enter directory: " wdir [[ -d $wdir ]] && \ echo $wdir exists || \ echo $wdir does not exist