Re: perl/bash question - html link out of text

2010-03-07 Thread Boyd Stephen Smith Jr.
On Sunday 07 March 2010 11:07:56 Vadkan Jozsef wrote: > I don't know how to modify the: > > sed -r 's,.*(http://[^ \"$]+).*,\1,' > > command, to not just: > $ echo "test string http://somewhere.uk/ test" | sed -r 's,.*(http://[^ > \"$]+).*,\1,' > http://somewhere.uk/";>http://somewhere.uk/ > > r

Re: perl/bash question - html link out of text

2010-03-07 Thread Kumar Appaiah
On Sun, Mar 07, 2010 at 11:12:39AM -0600, Kumar Appaiah wrote: > On Sun, Mar 07, 2010 at 06:07:56PM +0100, Vadkan Jozsef wrote: > > I don't know how to modify the: > > > > sed -r 's,.*(http://[^ \"$]+).*,\1,' > > > > command, to not just: > > $ echo "test string http://somewhere.uk/ test" | sed -

Re: perl/bash question - html link out of text

2010-03-07 Thread Kumar Appaiah
On Sun, Mar 07, 2010 at 06:07:56PM +0100, Vadkan Jozsef wrote: > I don't know how to modify the: > > sed -r 's,.*(http://[^ \"$]+).*,\1,' > > command, to not just: > $ echo "test string http://somewhere.uk/ test" | sed -r 's,.*(http://[^ > \"$]+).*,\1,' > http://somewhere.uk/";>http://somewhere.u

perl/bash question - html link out of text

2010-03-07 Thread Vadkan Jozsef
I don't know how to modify the: sed -r 's,.*(http://[^ \"$]+).*,\1,' command, to not just: $ echo "test string http://somewhere.uk/ test" | sed -r 's,.*(http://[^ \"$]+).*,\1,' http://somewhere.uk/";>http://somewhere.uk/ rather output this: test string http://somewhere.uk/";>http://somewhere.uk/