Last active
November 18, 2016 14:01
-
-
Save blbradley/5337653 to your computer and use it in GitHub Desktop.
Using sed to clean my credit card data from Citibank PDFs
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
# Example data line: | |
# 06/01 06/01 Bestbuy.com 00009944 888-237-8289 MN -$49.26 | |
echo '06/01 06/01 Bestbuy.com 00009944 888-237-8289 MN -$49.26' \ | |
| sed 's:[0-9]\+/[0-9]\+:&,:g' \ | |
| sed 's: -\?\$[0-9]\+:,&:' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Citibank changes their download interface. So, I don't think I'll be updating this anymore.