optional argument bash

Shell
VAR="${1:-default}"
Source

Also in Shell: