Breaking large file into pieces

Bob Peirce #305 rbp at investor.pgh.pa.us
Fri Sep 14 01:38:34 AEST 1990


In article <9466 at jpl-devvax.JPL.NASA.GOV> lwall at jpl-devvax.JPL.NASA.GOV (Larry Wall) writes:
>In article <1990Sep11.134238.20218 at dg-rtp.dg.com> monroe at dg-rtp.dg.com (Mark A Monroe) writes:
>: I want to rip a large file into pieces, naming new files according
>: to an ID string in the large file.  For example, the large file contains
>: records that look like this:
>: 
>: Any suggestions?  
>
>In standard shell+awk+sed it's a bit hard because you run out of file
>descriptors.
In nawk you can close the old file before you open the new.
-- 
Bob Peirce, Pittsburgh, PA				  412-471-5320
...!uunet!pitt!investor!rbp			rbp at investor.pgh.pa.us



More information about the Comp.unix.shell mailing list