function abs(n){ return (n>=0) ? n : -n } BEGIN{ RS="," } { c[NR] = $1 } END{ maxpos=0 for(i=1;i<=NR;i++) if(maxpos