[Libreoffice-bugs] [Bug 40227] Create new files from the command line
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Aug 14 08:18:44 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=40227
--- Comment #15 from Boris Kheyfets <kheyfboris at gmail.com> ---
Here's a bash function to create empty spreadsheet:
function lo-create-spreadsheet () {
# usage:
# lo-create-spreadsheet test.xlsx
# lo-create-spreadsheet test.xls
# lo-create-spreadsheet test.ods
baseName=${1%.*}
ext=${1#*.}
csvFile="${baseName}.csv"
touch "$csvFile"
loffice --convert-to "$ext" "$csvFile"
rm "$csvFile"
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170814/c4f7077a/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list