Blame | Last modification | View Log | Download | RSS feed
{
if( $5 == 2) {
cnt = 6
while (cnt < NF)
{
cnt1 = cnt+1
cnt2 = cnt+2
cnt3 = cnt+3
cnt4 = cnt+4
cnt5 = cnt+5
printf ("%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|\n",$1,$2,$3,$4,$cnt,$cnt1,$cnt2,$cnt3,$cnt4,$cnt5)
cnt= cnt+6
}}
}