Libreoffice in unix

Hi,

I am trying to convert the xls file saved in a directory on my unix machine and then save the new csv file to same directory. I am running the below command , however, I see the new fle is not saved in the directory.

libreoffice --headless --convert-to csv --outdir “$outputdirectorypath” “$xlsfilepath”

Note that you provided a command line with variables, which values are unknown to everybody but yourself. Which answer are you expecting for such input?

As suggested by Mike: Try first with fixed filenames, then decide, if you have a problem with LibreOffice or bash.
.
And you could change your tag from Base (database component of LibreOffice) to Calc or something more meaningful.