Re: Reading Excel or Libreoffice files
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Reading Excel or Libreoffice files
- From: Enrico Colombini <erix@...>
- Date: 2016年12月28日 09:08:36 +0100
On 27-Dec-16 22:43, TW wrote:
You *can* use LibreOffice in a batch process. In Bash:
tmpdir=$(mktemp --directory)
soffice "-env:UserInstallation=file://""$tmpdir""/soffice" \
--headless --invisible --convert-to csv "$xslfile"
The "-env:UserInstallation=..." part is to ensure that LibreOffice
will not use the GUI even if there is an instance of LibreOffice with
GUI already running.
Thanks to Hisham and to you; this could be very useful (last time I
needed to read from an .ods file, I wrote a small XML parser...).
Even just lurking in this list [insert guilt here] is always rewarding :-)
--
Enrico