Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Quicken permits the user to download data to "Excel" as a file. Of course excel files can be opened with star, open, libre, GNumeric and many other linux compatible "office" packages.
So - particularly if it is a one off task,
1. Upload the qif data to quicken,
2. download it in "excel"
3. Upload to an office package and
4. Download to csv format.
You might also find that the download excel format is really just a csv file.
You may have to work through installing perl libraries, as noted, and then do the additional follow-on work to shape the output into the format you wish.
Actually, in the third link offered by TB0ne there's a ready-made Perl script using the library I suggested.
And a quick search shows that besides GnuCash, Grisbi, KMyMoney and Skrooge all can import QIF, and at least Skrooge, but I guess others as well, can export to CSV.
Actually, in the third link offered by TB0ne there's a ready-made Perl script using the library I suggested.
And a quick search shows that besides GnuCash, Grisbi, KMyMoney and Skrooge all can import QIF, and at least Skrooge, but I guess others as well, can export to CSV.
Great!
And I should have noted that TB0ne also identified the GNUCash option, where that one should be "right there" in most distributions' repos and software managers.
So, at this point, not that I had much true suggestions, I guess it's up to the OP.
I tried Gnucash. It did a good job at importing the qif file, but a very bad job when trying to export it as a csv file. The csv file was about six times bigger than the qif file, and most of the characters in it were " for some reason. So while nominally it was a csv file, in actuality it was useless.
Perl, awk etc. I think it is unreasonable to expect non-programmers to spend weeks or months leaning a new language. It would be quicker to replace the characters by hand in a text file.
Please do not be so unfriendly and critical of people who ask for help here.
But great thanks to people who did try to help, much appreciated.
Solution not found, but I want to close this thread and try another approach.
I tried Gnucash. It did a good job at importing the qif file, but a very bad job when trying to export it as a csv file. The csv file was about six times bigger than the qif file, and most of the characters in it were " for some reason. So while nominally it was a csv file, in actuality it was useless.
Perl, awk etc. I think it is unreasonable to expect non-programmers to spend weeks or months leaning a new language. It would be quicker to replace the characters by hand in a text file.
Please do not be so unfriendly and critical of people who ask for help here.
But great thanks to people who did try to help, much appreciated.
Solution not found, but I want to close this thread and try another approach.
I think you ought to consider that CSV is not a format you should use then, or perhaps you decided you wanted that, but didn't evaluate the need fairly.
For most people, the selection of CSV is so that it can be more universal, versus proprietary or rare of a file form.
It was already noted that the QIF file format is ASCII, and thus read-able, given the caveat that one needs to understand how Quicken represents data.
I also submit that a lot of data in a QIF file, is going to result in a lot of data in a CSV. So the complaint seems rather, "summary dismissive" about a tool that did what you originally asked.
I feel these types of things are what members like Ondoho and TB0ne are citing. And now include myself. Please realize I'm answering here as a fellow LQ member, I'm not in charge of the Software forum, and even if I were, my intentions here were to answer your question as best as I could.
What I'm thinking now is that you really need to describe better what you wished to result from all this.
To be clear, you've found something to convert QIF to CSV, and now you've made an unclear statement that it's not what you wanted.
and most of the characters in it were " for some reason. So while nominally it was a csv file, in actuality it was useless.
Probably because it's easier to write something that always adds quotes than it is to conditionally add them only when strictly needed.
Such output is only useless if your CSV parser is not actually a CSV parser, but you can still easily remove the unnecessary quotes using any of several tools, e.g. XSV or Miller:
Code:
# using existing file
xsv fmt "$csvfilename"
mlr --csv cat "$csvfilename"
# piping output from another command
echo "$csvdata" | xsv fmt
echo "$csvdata" | mlr --csv cat
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.