Software >> OS >> Unix >> Shell >> bash >> How to determine yesterday's date in bourne shell (sh) or bash

echo `TZ=GMT+24 date +%Y%m%d`

or

yyyymmdd=`TZ=GMT+24 date +%Y%m%d`
echo $yyyymmdd