Forrest logo
back to the libreoffice tool

libreoffice:tldr:f848f

libreoffice: Convert all `.doc` files in current directory to PDF.
$ libreoffice --convert-to ${pdf} ${*-doc}
try on your machine

This command is used to convert files from various formats to PDF using LibreOffice.

Here is a breakdown of the command:

  • libreoffice is the command to execute LibreOffice, an open-source office suite.
  • --convert-to is an option that specifies the conversion operation.
  • ${pdf} represents the output format, in this case, PDF. ${pdf} is possibly a variable or an alias that represents the string "pdf".
  • ${*-doc} represents the input file(s) to be converted. ${*-doc} is a variable or an alias that represents all files in the current directory with the extension ".doc".

In summary, the command will use LibreOffice to convert all files in the current directory with the ".doc" extension to PDF format.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the libreoffice tool