Centos – How to do a fast convert of a .xls (MS Excel) file to .csv

centoscsvjavascriptlinuxPHP

How can I do a fast convert of excel to csv? I have tried with php, perl, JavaScript. but it takes too much time. For example, for a 5MB file it will take 3-5 minutes.

Best Answer

libreoffice offers this option, I cannot tell about resource use, though:

libreoffice --headless --convert-to csv $filename(s) --outdir $outdir

--outdir is optional and will be the current working dir if not specified, batch mode is possible by simply specifying multiple files.

Related Question