Test to see if a directory exists using an if statement.
Directory test in bash.
Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Wednesday July 30th, 2008 12:52 AM
# if dir exists, include in path
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fi
Downloads:
Download: direxists.sh 100 B
Please login or Click Here to register for downloads
if dir exists by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at www.3daet.com
Permissions beyond the scope of this license may be available at http://www.3daet.com
