Ask Your Question

Can I clean up documents from the command line?

asked 2019-07-04 12:32:12 +0200

messiosa gravatar image

Hi - I've just started to use libreoffice from the command line (linux) to convert doc to docx files and it works like a charm. However, there's a few more things I need to do to a big number of documents and it would be amazing if there was a a way to do it from cmd:

  • Delete all comments for the whole document.
  • Clear direct formatting for the whole document.
  • Accept all tracked changes.

If there's any way to do this from the command lineplease let me know. I have a folder of 200+ docx files I need to do this to.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-07-05 07:32:37 +0200

gtomorrow gravatar image

updated 2019-07-05 07:36:22 +0200

Only, and ONLY, if you know what you're doing from the command line...

You can do irreparable damage to your files this way. PLEASE test on a copy of your file before proceeding. Don't make me regret answering this question.

edit flag offensive delete link more


Thanks for the link gtomorrow, and for the warning. Is the danger that you're editing the zipped xml files directly, so you can corrupt the whole document?

messiosa gravatar imagemessiosa ( 2019-07-05 11:29:31 +0200 )edit

ABSOLUTELY! That's why I said to test on a copy of your file.

gtomorrow gravatar imagegtomorrow ( 2019-07-05 13:33:37 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-07-04 12:32:12 +0200

Seen: 103 times

Last updated: Jul 05 '19