A Linux Bash if/or example

Here’s a quick Linux Bash if/else example featuring an or clause:

#!/bin/bash

day_of_week=`date +"%a"`

if [ "$day_of_week" == "Sat" ] || [ "$day_of_week" == "Sat" ]; then
  echo 'Weekend!'
else
  echo 'Not weekend!'
fi

The if/or clause is similar to other if/or expressions, and uses the || syntax shown.