Given a choice, I'd honestly do it on Windows and convert them to Excel with Excel. Excel's scripting language can automate that. Including the creation of the two worksheets.
The next best thing, is, as jlinkels mentioned, scripting it with OpenOffice or LibreOffice.
Last edited by dugan; 11-24-2014 at 08:09 PM.