#!/usr/bin/gawk -f #/* vim: set filetype=awk : */ # make your globals MixedCase BEGIN {IGNORECASE=1; FS=","} #weird behavior when n=11 { sub(/%.*/,"") } /^[ \t]*$/ { next} /@relation/,/@data/ { next} { Num++; for (i=1;i<=NF;i++) { #$i=substr($i,2); printf("%s ",$i); } print ""; } END {printf("Number of intstances: %i\n",Num)}