bash test if directory exists

Here is how to tell if a directory exists in bash.

if [ -d 'somedirectory' ]; then
#some bash commands
fi

Comments

Popular posts from this blog

Vim vi how to reload a file your editing