Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ugultopu/fa4a1931cab4f38d8608bfb3995cd7f6 to your computer and use it in GitHub Desktop.
Save ugultopu/fa4a1931cab4f38d8608bfb3995cd7f6 to your computer and use it in GitHub Desktop.

Opening a .docx file on a text editor won't mean anything, because a .docx file is a compressed file. To access the content in a .docx file, you can decompress it by running:

unzip path/to/file.docx

The better thing would be to create a directory and then run the command, in order for all files to be extracted to the same place:

mkdir document-contents
cd document-contents
unzip ../path/to/file.docx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment