#!/usr/bin/gawk -f BEGIN { line=1; line2=1; while(getline x < F) { split(x, lines,","); numY=0; if(line%2==0) { for(i=1;i<100;i++) { numY=numY+lines[i]; } print "keys,5,99,7,"line2","lines[100]","lines[101]","numY; line2++; } line++; } close(F); }