This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get yesterday's date (different between Mac and Linux) | |
if [[ "$OSTYPE" == "darwin"* ]]; then | |
yesterday=`date -v-1d +%F` | |
else | |
yesterday=$(date -d "yesterday 13:00" +'%Y%m%d') | |
fi | |
# Construct the filename | |
dest=past-$yesterday.md |