Sometimes I'm working from terminal for long periods of time and I come across a doc file I don't recognize. I've been trying to figure out how to view it instead of opening up word.
I've tried cat but it jumps into binary and my terminal goes nuts.
Is there a way I can do this from terminal?
---------- Post updated at 02:26 PM ---------- Previous update was at 02:24 PM ----------
Forgot to put this in the General UNIX Questions forum. Apologies, can someone move this.
Another option that *may* work with some documents: the strings command. It will extract any text strings from a file and leave out all the other stuff.
I just found an interesting tool from the apple developer site called textutil that's built in OSX. Apparently it wasn't added until OSX 10.4. Thought this was interesting.
Just thought I would put my findings here if anyone has the same question. Below is the following link or just type the following command.