You're viewing a comment by ankush and its responses.

June 09, 2008, 17:08

Great! Thanks for the detailed explanantion. However, I am not familiar with awk, so will appreciate, if you can explain the following:

1. awk 'BEGIN { OFS="\n" } NR > 2 {print $1,$2,$3,$4,$5,$6,$7,$8}'

2. awk 'BEGIN { prev[0] = 0 } NR = '$N' { psum += prev[NR-'$N'];

Reply To This Comment

(why do I need your e-mail?)

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

Type first 3 letters of your name: (just to make sure you're a human)

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