Skip to content

Instantly share code, notes, and snippets.

@junjizhi
Created December 15, 2013 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junjizhi/7974969 to your computer and use it in GitHub Desktop.
Save junjizhi/7974969 to your computer and use it in GitHub Desktop.
Multiple conditions in the shell. if condition
if [ -e $DIR1 ] && [ -e $DIR2 ] || [ -e $DIR3 ]
then
echo "do sth"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment