Last active
January 4, 2025 01:11
-
-
Save boehs/0ad128956a83862ac0c3c8aa7dd559bf to your computer and use it in GitHub Desktop.
Fidelity to Wealthfolio
This file contains hidden or 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
sed -i '' 's/" /"/g' file | |
sed -i '' 's/, /,/g' file | |
sed -i '' 's/YOU BOUGHT [^"]*/BUY/g' file | |
sed -i '' 's/YOU SOLD [^"]*/SELL/g' file | |
sed -i '' 's/DIVIDEND RECEIVED [^"]/DIVIDEND/g' file | |
sed -i '' 's/REINVESTMENT [^"]*/BUY/g' file | |
sed -i '' 's/".*CAP GAIN [^"]*/"DIVIDEND/g' file | |
sed -i '' 's/Electronic Funds Transfer Received [^"]*/TRANSFER_IN/g' file | |
sed -i '' 's/CHECK RECEIVED [^"]*/DEPOSIT/g' file | |
sed -i '' 's/DIRECT DEPOSIT [^"]*/DEPOSIT/g' file | |
sed -i '' 's/DIRECT DEBIT [^"]*/WITHDRAWAL/g' file | |
sed -i '' 's/JOURNALED .* reward [^"]*/DEPOSIT/g' file | |
sed -i '' 's/^ //g' file | |
sed -i '' 's/,\n/\n/g' file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment