Skip to content

Instantly share code, notes, and snippets.

@Azuritul
Created January 22, 2014 09:50
Show Gist options
  • Save Azuritul/8556094 to your computer and use it in GitHub Desktop.
Save Azuritul/8556094 to your computer and use it in GitHub Desktop.
Demonstrate how to get date in bash shell
TODAY=`date +%Y%m%d`
YESTERDAY=`TZ=GMT+24 date +%Y%m%d`
echo $TODAY
echo $YESTERDAY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment