0

Is there a command on Linux to convert an old MS Word document (.doc) to the new .docx format?

rainwater11
  • 141
  • 1
  • 9

1 Answers1

0

Something like this question is just asked here, you can use following commands from this git repository:

First install unoconv.

If you are using Ubuntu use this command:

sudo apt-get install unoconv

and go to your file location and run this command:

unoconv -d document --format=docx {your_file_name}.doc

or even if you want to format all .doc files there use this:

unoconv -d document --format=docx *.doc

hope this works for you.