In a unix shell, how to get yesterday’s date into a variable? May 29, 2023 by Tarik dt=$(date --date yesterday "+%a %d/%m/%Y") echo $dt