<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Create new files from the command line"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=40227#c15">Comment # 15</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Create new files from the command line"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=40227">bug 40227</a>
from <span class="vcard"><a class="email" href="mailto:kheyfboris@gmail.com" title="Boris Kheyfets <kheyfboris@gmail.com>"> <span class="fn">Boris Kheyfets</span></a>
</span></b>
<pre>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"
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>