&&
and ||
operators each take two operands (making them binary). We will refer to the operand appearing on the left of the operator as the lvalue and the operand on the right the rvalue.&&
∣∣
&&
∣∣
&&
operator acts as a logical AND between two commands and the ||
operator acts as a logical OR.date +%Y
). If executing date +%Y
results in anything but success we would assign a default year of 1979.