I want to know if there is a Linux tool or a script available to convert .xlsx file to .txt.
|
migrated from stackoverflow.com Oct 20 '10 at 18:07
|
Another way is rename it as .zip and unzip it as all the .***x files are just zipped folders containing xml. Inside you will find a folder "xl" with a subfolder "worksheets", inside is an xml file for each worksheet. The format of them is pretty simple and should be easy to parse with any of the xml packages. |
|||||
|
|
The ssconvert tool that comes with Gnumeric can convert xlsx files to text:
|
|||
|
|
|
I do not know about a tool in linux, but you can use Google Docs. You upload the spreadsheet there and you can then export it as txt. |
|||
|
|
|
If it's just textual/numerical data (which I have to assume it is, otherwise a text file would be a bit ambitious), then you could try xlsx2csv to generate CSV files from your spreadsheets. I can't vouch for its effectiveness, but it's worth a try. |
|||
|
|
|
I did this: http://slott-softwarearchitect.blogspot.com/2010/10/xlsm-and-xlsx-files-finally-reaching.html It worked for me. |
|||
|
|
|
Not command line, but OpenOffice can read .xslx files and save as csv. Its probably already on your Linux machine. |
|||
|
|
|
Not a shell script, (unlike the script mentioned in Andy's post from Oct 20 '10 at 8:44) but a python script: This exports date values as floats though: 2012/07/01 => 41091, "2012/07/01 01:00:00" => 41091.0416666667
|
|||
|
|