Created
December 15, 2013 16:28
-
-
Save junjizhi/7974969 to your computer and use it in GitHub Desktop.
Multiple conditions in the shell. if condition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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