Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!ihdev!pdg From: pdg@ihdev.UUCP Newsgroups: comp.unix.wizards Subject: Re: AWK question Message-ID: <1121@ihdev.UUCP> Date: Tue, 27-Jan-87 12:57:49 EST Article-I.D.: ihdev.1121 Posted: Tue Jan 27 12:57:49 1987 Date-Received: Wed, 28-Jan-87 22:39:16 EST References: <3747@brl-adm.ARPA> Reply-To: pdg@ihdev.UUCP (55224-P. D. Guthrie) Organization: American Nasal Amputation Centre Lines: 31 In article <3747@brl-adm.ARPA> lesh@BRL.ARPA (ISC | howard) writes: > THE PROBLEM: > "Users should also note that there is an upper limit to the >number of files that are written in this way. At present it is ten."*1 > > I can't find any way to close a file opened by 'awk' and very >soon get the "too many opened files error message". > > Any suggestions? > > >1. Support Tools Guide, p. 6-31. Any version of awk produced after July '85 (when my documentation says this feature was added, has the 'close' function. The close function is used as follows: close("filename"); where filename is the name of a file or pipe that has been previously opened. I just tried it and it worked with no problems. Unfortunately, most awks are not this new, and there does not seem to be a way to accomplish this on those earlier awks. -- Paul Guthrie ihnp4!ihdev!pdg This Brain left intentionally blank.