Last active
August 29, 2015 14:09
-
-
Save melmatsuoka/fb0dece75a29893210ad to your computer and use it in GitHub Desktop.
Extract & convert date from Droplr Pro e-mail receipt Subject: line to YYYYMMDD format
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
echo "Droplr Pro Receipt - 15 Nov 2014" | egrep -o '[0-9]{2} [a-zA-Z]{3} [0-9]{4}' | xargs -I DATESTRING date -jf "%d %b %Y" DATESTRING +"%Y%m%d" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment