perl/bash question - html link out of text

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


I don't know how to modify the:

sed -r 's,.*(http://[^ \"$]+).*,<a href=\"\1\">\1</a>,'

command, to not just:
$ echo "test string test" | sed -r 's,.*(http://[^
\"$]+).*,<a href=\"\1\">\1</a>,'
<a href="";></a>

rather output this:
test string <a href="";></a> test

can some perl/bash gods help me? :)

users mailing list
[email protected]
To unsubscribe or change subscription options:

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux