home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10589 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.6 KB  |  45 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!casbah.acns.nwu.edu!navarra
  3. From: navarra@casbah.acns.nwu.edu (John Navarra)
  4. Subject: Re: awk help
  5. Message-ID: <1992Sep1.033213.5983@news.acns.nwu.edu>
  6. Sender: usenet@news.acns.nwu.edu (Usenet on news.acns)
  7. Organization: Northwestern University, Evanston Illinois.
  8. References: <1992Aug31.212717.16872@sunova.ssc.gov>
  9. Date: Tue, 1 Sep 1992 03:32:13 GMT
  10. Lines: 33
  11.  
  12.  
  13. [ I had trouble sending you mail, so I will post a short reply]
  14.  
  15.  
  16. In article <1992Aug31.212717.16872@sunova.ssc.gov> you write:
  17. >
  18. >I am opening several ouput files while in a awk command.  I
  19. >keep getting an error message telling me I have opened
  20. >too many files.  Is there anyway I can get around
  21. >this?
  22. >
  23. >the error message is
  24. >       awk: too many output files 10
  25. >       record number 344
  26. >
  27.         The answer to your question is yes and no.
  28.  
  29. No, if you are using the original awk, the maximum number of open files
  30. you are allowed to have is 10. This is why you are getting the error
  31. message.
  32.  
  33. Yes, if you have nawk or gawk. (gawk can be anonymously ftped from
  34. a number of places). The max number of open files is 15 but more
  35. importantly, you can use the 'close' statement to close open files.
  36. See documentation for more info.
  37.  
  38. -tms
  39.  
  40. -- 
  41. You can get further with a kind word | You can get further with a kind word
  42. and a gun than a kind word alone.    | and a phaser than a kind word and a gun.
  43.           --al capone                |           -- John Navarra
  44. =======From the Lab of the MaD ScIenTIst....navarra@casbah.acns.nwu.edu========
  45.