perl/bash question - html link out of text
- From: Vadkan Jozsef <jozsi.avadkan@xxxxxxxxx>
- Date: Sun, 07 Mar 2010 18:07:54 +0100
I don't know how to modify the:
sed -r 's,.*(http://[^ \"$]+).*,<a href=\"\1\">\1</a>,'
command, to not just:
$ echo "test string http://somewhere.uk/ test" | sed -r 's,.*(http://[^
\"$]+).*,<a href=\"\1\">\1</a>,'
<a href="http://somewhere.uk/">http://somewhere.uk/</a>
rather output this:
test string <a href="http://somewhere.uk/">http://somewhere.uk/</a> test
can some perl/bash gods help me? :)
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
- Follow-Ups:
- Re: perl/bash question - html link out of text
- From: Mark Knoop
- Re: perl/bash question - html link out of text
- Prev by Date: pear for fedora 11
- Next by Date: Re: perl/bash question - html link out of text
- Previous by thread: pear for fedora 11
- Next by thread: Re: perl/bash question - html link out of text
- Index(es):
Relevant Pages
|