importing paypal csv into gnucash

From thelinuxwiki
Revision as of 21:17, 11 October 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

script to format the paypal csv


cat Download.csv | sed -e '1d' | awk -F "\",\"" '{ for (i=1; i<=NF; i++); printf substr($1,2) "," $7 "," $12 "," "\"Item ID " $16 " " $15 "\"\n" ; if ($8!="0.00") printf substr($1,2) "," $8 "," $12 "," "\"paypal fee for " $16 "\"\n"}'