Convert URLs into HTML links using sed?

Posted by Mike Crittenden on Stack Overflow See other posts from Stack Overflow or by Mike Crittenden
Published on 2010-03-22T02:37:36Z Indexed on 2010/03/22 2:41 UTC
Read the original article Hit count: 400

Filed under:
|
|
|
|

I'm wondering if it's possible (recommended might be the better word) to use sed to convert URLs into HTML hyperlinks in a document. Therefore, it would look for things like:

http://something.com

And replace them with

<a href="http://something.com">http://something.com</a>

Any thoughts? Could the same also be done for email addresses?

© Stack Overflow or respective owner

Related posts about sed

Related posts about html