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
### Keybase proof | |
I hereby claim: | |
* I am paulcarroll on github. | |
* I am paulcarroll (https://keybase.io/paulcarroll) on keybase. | |
* I have a public key ASC7HSt7as6UmbUWcs6RH1FtgowO1JiivbxA0tFAUASnXAo | |
To claim this, I am signing this object: |
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 |