As I mentioned there , how can I view documents( ex: .doc,.docx and all other formats ) from the command line ? Is there any way ?
I have been using the following setup in several scripts (especially with version control):
or for a docx file:
Works like a charm and you can read your doc files in the terminal. This method is more complex than
For a LaTex file you can just your favorite terminal text editor to open and read it.
To View word documents from the command line I found one named as catdoc.
to install it
You can specify the output format using the -a (text) or -t (LaTeX) option