[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: perl or bash question ["convert strings in a txt to html links"]

On 27.2.2010 19:12, Vadkan Jozsef wrote:
> How can I do that in bash or perl, that I have a txt file, e.g.:
> $cat file.txt
> Hi, this is the content of the txt file, that contains links like this:
> http://www.somewhere.it/, and it could contain: http://somewhere.com,
> etc..
> This is the second line, that doesn't contains links..
> ..
> This is the XYZ line, that contains a link: http://www.somewhere.net
> $

No regexp but how about the txt2html utility?


"Elves and Dragons!" I says to him.  "Cabbages and potatoes are better
for you and me."
		-- J. R. R. Tolkien

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: