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

Re: Grep for colums?



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-us.paf.exe?download

so I want to search like:
| grep downloads.sourceforge.net | grep nvu
but the text isn't separated with enters, and I want to search in columns, not in rows :S


2009/2/11 Γιώργος Πάλλας <gpall@ccf.auth.gr>
Nagy Daniel wrote:

Is there a methodfor searching in colums just like grep does in rows, but i don't know how many colums I will have, so: awk is not good, beacuse awk {print $1$2$3} it's not a good soultion:S i have too many colums


There is always perl!

If you send an example of what you want, I can hack you quickly a 5 line perl script to do the job...

G.


Reply to: