I have a very huge file in which I need to obtain every nth line and print it into a row.
My data:
1 937 4.320194 2 667 4.913314 3 9
It's not (g)awk, but it'll work:
cat myfile | grep ^[[:digit:]]*0[[:blank:]] should do the trick.
cat myfile | grep ^[[:digit:]]*0[[:blank:]]