Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!romp!auschs!d75!awdprime!shah.austin.ibm.com!parag From: parag@shah.austin.ibm.com (Parag Shah) Newsgroups: comp.unix.shell Subject: Re: Breaking large file into pieces Message-ID: <3466@awdprime.UUCP> Date: 11 Sep 90 21:14:26 GMT References: <1990Sep11.134238.20218@dg-rtp.dg.com> Sender: news@awdprime.UUCP Reply-To: parag@shah.austin.ibm.com (Parag Shah) Organization: IBM Austin, TX Lines: 13 >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: >xxx-00001239 data data data >description Seems like the "csplit" command may be able to help you. You may have to rename the namely created files later using the first line to get the number id that you want. Parag