bash if or logic code example
Example 1: bash or
if [ "$1" = "a.txt" ] || [ "$2" = "c.txt" ]; then
# do smt...
fi
Example 2: if and if bash
if [ "${STATUS}" != 200 ] && [ "${STRING}" != "${VALUE}" ]; then
if [ "$1" = "a.txt" ] || [ "$2" = "c.txt" ]; then
# do smt...
fi
if [ "${STATUS}" != 200 ] && [ "${STRING}" != "${VALUE}" ]; then