Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In an effort to go "all txt" I need to find a way to make the links in .doc files visible in the text, so that the URLs will remain accessible when I paste the the text into .txt documents.

Will any feature in Pages, Word or OpenOffice allow me to have all the URLs' hyperlinks in a document written beside the hyperlink, in the text? In something like a description[link] pattern.

In some cases there is no description in the link, only the URL. Duplication in these cases would not be problematic.

share|improve this question
    
So, to be clear, do you want plain text as output of all these operations? – slhck Feb 4 '12 at 17:37
    
yes, that's correct – Tor Thommesen Feb 4 '12 at 17:50

If use have basic Word documents, catdoc will probably achieve what you need. It's easy to install on OS X through Homebrew, running brew install catdoc.

Let's convert this Word file.

The output is:

$ catdoc test.doc 
This is   HYPERLINK "http://www.example.com"  a hyperlink .

As you can see, the hyperlink is placed before the description, and the field code can be removed by a simple search and replace for HYPERLINK (note the spaces).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .