Dear Community,
I have CSV file wich needs to be converted in XLS to be parsed by a Perl script. I don´t want to touch in the perl script so I am trying to convert the CSV into XLS format without losing anything. Using LibreOffice graphic interface I am able to do multiple conversions without losing any data/format.
176290 a.csv
using LibreOffice graphical interface I get
195584 a.xls
The file gets actually bigger (assuming no data is lost here)
Trying to do the same using UNIX command line:
libreoffice --headless --convert-to xls --infilter=“csv:44,34,UTF8” a.csv
I get a much smaller file
36471 a.xls
My question is, how to convert, through UNIX commands, a CSV file to XLS without losing anything ?
Appreciate any help.
Regards,
Filipe