#!/bin/env bash
# either use first argument or fallback to the bit after the :-
# ./print-date
# ./print-date 220930
today="${1:-$(date +%y%m%d)}"
echo $today
#!/bin/env bash
# either use first argument or fallback to the bit after the :-
# ./print-date
# ./print-date 220930
today="${1:-$(date +%y%m%d)}"
echo $today