Xref: utzoo comp.unix.wizards:11570 comp.unix.questions:9593 Path: utzoo!utgpu!attcan!uunet!husc6!ukma!gatech!mcdchg!chinet!les From: les@chinet.UUCP (Leslie Mikesell) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: Redirecting output in AWK Message-ID: <6731@chinet.UUCP> Date: 5 Oct 88 03:17:49 GMT References: <816@mergvax> Reply-To: les@chinet.chi.il.us (Leslie Mikesell) Distribution: na Organization: Chinet - Public Access Unix Lines: 27 In article <816@mergvax> rkxyv@mergvax (Rob Kedoin) writes: >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 ? This is supposed to be fixed in the SysVr3 new awk (nawk). However I've done something similar by generating a shar-like output and piping it to /bin/sh. The output can look something like this: cat >file1 <file2 <