Created
November 19, 2021 08:22
-
-
Save Kapott/f3b2b350573a0bb4b7385e0f0e19e63c to your computer and use it in GitHub Desktop.
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
# When exporting data from ABN Amro, they use their own MT940 format, incompatible with things like GnuCash. | |
# This shellscript takes in a file, and exports it with the suffix "_fixed" | |
#!/usr/bin/env bash | |
if test -e "$1"; then | |
grep -vE '^ABNANL2A\s$|^940\s$' "${1}" > "${1/\.STA/_fixed\.STA}" | |
echo "Written: ${1/\.STA/_fixed\.STA}" | |
else | |
echo "Usage: $0 <filename>" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment