You're replying to a comment by krishna.

krishna Permalink
June 04, 2013, 02:32

hi,

I have a file with 20 columns and the 20th column varies from 1 to 6000. Few of the 20th column can also have the same number. I want to have the rows where 20th column |wc is greater than 3 (for the same value)
rows= 8560

for (( n=1; n<8560; n++ )); awk -v val=$n ' $20==val {cnt++} END if ( cnt>3 ) print $0' temp.txt 

there was some syntax problem. Where it was wrong

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "rocket": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.