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

Re: Grep for colums?



Thank you!!!

The solution was this:

cat text.txt | perl -ne 'print "$1\n" while (/href="" | grep sourceforge | grep nvu


2009/2/11 Michael Iatrou <m.iatrou@freemail.gr>
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="">
f37214a30.txt is a file with the snippet you uploaded.

--
 Μιχάλης Ιατρού (tljw)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: