Redirecting output in AWK

Rob Kedoin rkxyv at mergvax
Tue Oct 4 04:45:50 AEST 1988


I am trying to use AWK to split one file into many formatted, smaller files.

The problem I am having is that I cannot output to more than 10 files.  I am
doing my output in a manner similar to:
	MY_FILE="foo";
	printf("abc\n") >> MY_FILE;
	close(MY_FILE);
Even though I am executing the close, I am still running out of files.  Does
anyone know of a fix to this ?

Thanks in advance,

		-Rob Kedoin

UUCP:	...{philabs,motown,icus}\!mergvax\!rkxyv
ARPA:	rkxyv%mergvax.UUCP at uunet.uu.net
BITNET:	rkxyv%mergvax.UUCP at uunet.uu.net.BITNET
SNAIL-mail: Linotype Company - R&D 425 Oser Avenue Hauppauge, NY 11788
VOICE: (516) 434 - 2729



More information about the Comp.unix.questions mailing list