When the date was Wednesday 11 February 2009, Nagy Daniel wrote: > the "text" is here: > > http://pastebin.com/f37214a30 > > and I only want this string: > > http://downloads.sourceforge.net/portableapps/nvu_portable_1.0_rev_5_en-u >s.paf.exe?download
It seems to me that you only want to grab urls. This should (kind of) do the trick: cat f37214a30.txt | perl -ne 'print "$1\n" if (/href=\"(.+?)\"/ig)' f37214a30.txt is a file with the snippet you uploaded. -- Μιχάλης Ιατρού (tljw) -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org