Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.