Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

convert .csv to a .xlsx from CLI

Tags:

linux

csv

xlsx

I found this for the opposite conversion Convert xlsx to text CSV via command line only on Linux But I have absolutely no understanding of that line of code. Can anyone tell me how to convert from a csv to a xlsx from the CLI? Thanks in advance for any help.

like image 388
avorum Avatar asked Jan 29 '26 02:01

avorum


1 Answers

Maybe you can try unoconv, which uses libreoffice as backend. It can convert between formats really easily:

unoconv -f xls myfile.csv

Sadly it does not support xlsx on Fedora, but supports ooxml - Microsoft Excel 2003 XML [.xml]

like image 111
user897079 Avatar answered Jan 30 '26 14:01

user897079



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!