creating QIF file under Dos using AWK

AC gnucash at acarver.net
Sun Mar 8 19:23:03 EDT 2015


On 2015-03-08 16:19, Michael DeBusk wrote:
> On Sun, Mar 8, 2015 at 7:02 PM, AC <gnucash at acarver.net> wrote:
> 
>> BEGIN {FS=","; line=0}
>> #you said your entries are comma delimited so you should be using
>> #a comma not a semicolon as the field separator
>> {
>>         line++
>>         if ( line < 3 ) { next }
>>         else
>>         {
>>                 print "!Type:Bank"
>>                 print "D" $1
>>                 print "T" $3
>>                 print "P" $2
>>                 print "^"
>>         }
>> }
> 
> Is it desirable to have "!Type:Bank" in each entry? AFAIK, it belongs
> only at the top of the file.
> 

According to the QIF file format information link that is provided in
the Gnucash wiki (the link goes to Wikipedia:
http://en.wikipedia.org/wiki/QIF) it is required on each transaction.
If not then that isn't clear from the samples.


More information about the gnucash-user mailing list