Posts

Showing posts with the label bash

how to get yesterday in bash shell script

YESTERDAY=`date --date=yesterday +'%Y%m%d'` echo $YESTERDAY