Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Check is directory exist shell

DIR="/etc/httpd/"
if [ -d "$DIR" ]; then
  # Take action if $DIR exists. #
  echo "Installing config files in ${DIR}..."
fi
Source by www.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #Check #directory #exist #shell
ADD COMMENT
Topic
Name
4+1 =