I am trying to convert a XLS to CSV with a string separator like '_A_'
I read the documentation and to use the '_' as separator you have to use the ASCII character 95 :
Code: Select all
/usr/bin/soffice --headless --convert-to csv:"Text - txt - csv (StarCalc)":95,34,76,,,,true "file.xls"
For multiple values documentation says:
I tried with 95/65/95 (ASCII for _A_ ) but it ignore 65/951. Field separator(s) as ASCII values. Multiple values are separated by the slash sign ("/"), that is, if the values are separated by semicolons and horizontal tabulators, the token would be 59/9. To treat several consecutive separators as one, the four letters /MRG have to be appended to the token. If the file contains fixed width fields, the three letters FIX are used.
ex:
Code: Select all
/usr/bin/soffice --headless --convert-to csv:"Text - txt - csv (StarCalc)":95/65/95,34,76,,,,true "file.xls"
Code: Select all
/usr/bin/soffice --headless --convert-to csv:"Text - txt - csv (StarCalc)":95/65/95/MRG,34,76,,,,true "file.xls"
Code: Select all
/usr/bin/soffice --headless --convert-to csv:"Text - txt - csv (StarCalc)":95/MRG/65/MRG/95/MRG,34,76,,,,true "file.xls"
but it only add the 95( _ ) separator.
Is it possible to use a word as a field separator?