<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 10 Jun 2026 06:29:49 +0000</lastBuildDate>
    <item>
      <title>(Other) Export a Single Sheet of an Excel Spreadsheet as CSV from the Command Line with Open Office - softmechanics</title>
      <link>https://snipplr.com/view/27342/export-a-single-sheet-of-an-excel-spreadsheet-as-csv-from-the-command-line-with-open-office</link>
      <description>&lt;p&gt;modified from branflake2267's post at oooforum.org:&#13;
http://www.oooforum.org/forum/viewtopic.phtml?t=52942&#13;
&#13;
usage:&#13;
Paste into the Standard.Module1 macro file.  Then, create xls2csv bash script containing:&#13;
&#13;
    #!/bin/bash&#13;
    file="$(readlink -f "$1")"&#13;
    /usr/lib/openoffice/program/soffice -invisible -headless -norestore "macro:///Standard.Module1.ConvertXls2Csv(\"$file\", \"$2\")"&#13;
&#13;
&#13;
The first argument is the xls file name, second is the name of the sheet:&#13;
&#13;
`xls2csv ./spreadsheet.xls "Some Sheet"`&lt;/p&gt;</description>
      <pubDate>Fri, 29 Jan 2010 20:28:06 UTC</pubDate>
      <guid>https://snipplr.com/view/27342/export-a-single-sheet-of-an-excel-spreadsheet-as-csv-from-the-command-line-with-open-office</guid>
    </item>
  </channel>
</rss>
