Code:
bakunin@aix_5_2:/tmp> cat test.asc
x(xx,x,x,,,x,x,9999,,x,,,xx,,,xxxx,,,,,,,,,,,,,,,,,,999,
x(xx,x,x,,,x,x,8888,,x,,,xx,,,xxxx,,,,,,,,,,,,,,,,,,999,
bakunin@aix_5_2:/tmp> grep "^\([^,]*,\)\{7\}9999" test.asc
x(xx,x,x,,,x,x,9999,,x,,,xx,,,xxxx,,,,,,,,,,,,,,,,,,999,
bakunin@aix_5_2:/tmp> grep "^\([^,]*,\)\{7\}8888" test.asc
x(xx,x,x,,,x,x,8888,,x,,,xx,,,xxxx,,,,,,,,,,,,,,,,,,999,
bakunin@aix_5_2:/tmp> grep "^\([^,]*,\)\{33\}999" test.asc
x(xx,x,x,,,x,x,9999,,x,,,xx,,,xxxx,,,,,,,,,,,,,,,,,,999,
x(xx,x,x,,,x,x,8888,,x,,,xx,,,xxxx,,,,,,,,,,,,,,,,,,999,
bakunin@aix_5_2:/tmp> what /usr/bin/grep
/usr/bin/grep:
61 1.14 src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos520 7/11/00 12:04:14
46 1.72.2.3 src/bos/usr/bin/grep/grep.c, cmdscan, bos52L, l2005_19B0 4/14/05 04:52:19