creating QIF file under Dos using AWK

Michael DeBusk mdebusk at gmail.com
Sun Mar 8 19:19:09 EDT 2015


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.

-- 
()  ascii ribbon campaign     * against html e-mail
/\  www.asciiribbon.org       * against proprietary attachments
Home: http://nlphilia.com     * Blog: http://nlphilia.net
Registered Linux User #450983 * Ubuntu Counter Project #10548


More information about the gnucash-user mailing list