Is there a simple way, using some common Unix scripting language (Perl/Python/Ruby) or command line utility, to convert an Excel Spreadsheet file to CSV? Specifically, this one:
http://www.econ.yale.edu/~shiller/data/ie_data.xls
And specifically the third sheet of that spreadsheet (the first two being charts).
Maybe xlrd will do the Job (in Python)
edit: I should really learn to read questions. But writing csv shouldn't be a huge problem so maybe you can actually use it.
You can use pyexcelerator in python.
This code (included in the
examples
folder of pyexcelerator asxls2csv.py
) extracts all sheets from the spreadsheets and outputs them tostdout
as CSV.You can easily change the code to do what you want.
The cool thing about pyexcelerator is that you can also use it to write/create excel xls files, without having excel installed.
In Ruby, here is the code I use: (requires the excellent parseexcel gem) require 'parseexcel'
Options exist for all three languages. The question is - which one are you most familiar with. This is the language you should use, for sure. And if you're not familiar with either, this application is not really a great example of picking between the languages.
Opinionated P.S: if you don't know any of the languages, just learn Python and use
xlrd
.