Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.