From jozsi.avadkan at gmail.com Fri Jun 5 20:20:10 2015 Content-Type: multipart/mixed; boundary="===============5043798813562609901==" MIME-Version: 1.0 From: Arthur Bela To: users at lists.fedoraproject.org Subject: perl/bash question - html link out of text Date: Sun, 07 Mar 2010 18:07:54 +0100 Message-ID: <1267981674.2365.82.camel@ubuntu> --===============5043798813562609901== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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/ rather output this: test string http://somewhere.uk/ test can some perl/bash gods help me? :) --===============5043798813562609901==--