Skip to content

Instantly share code, notes, and snippets.

@lukesnow
Created August 17, 2014 03:46
Show Gist options
  • Save lukesnow/ec7e125be48301266cca to your computer and use it in GitHub Desktop.
Save lukesnow/ec7e125be48301266cca to your computer and use it in GitHub Desktop.
Linux - convert txt/csv to xlsx
# File can be space or comma separated.
# ssconvert is part of gnumeric.
ssconvert test.txt test-txt.xlsx
# File must be delimited with commas. This can be done via:
# cat test.txt | tr " " "," > test.csv
soffice --headless --convert-to xlsx:"Calc MS Excel 2007 XML" test.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment