Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnews!ask From: ask@cbnews.cb.att.com (Arthur S. Kamlet) Newsgroups: comp.unix.questions Subject: Re: need help on unix Message-ID: <1991Jun25.215410.17758@cbnews.cb.att.com> Date: 25 Jun 91 21:54:10 GMT References: <1991Jun11.004109.21966@unixg.ubc.ca> <8382@auspex.auspex.com> Distribution: na Organization: AT&T Bell Laboratories, Columbus, Ohio Lines: 18 In article <8382@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes: >>Does anyone out there know how to delete the first few lines or the last >>few lines from a file without evoke a editor? The reason is the file is >>too large to be edited. Seems to me if the file is too large to be edited, then you want to break it down into manageable sized files. Just zapping the last or first few lines may be OK for now, but would still require that you edit a large file without any guarantee that your edit won't take you over the limit. So, if you have a split() available, try to split your file into pieces, each of which is small enough. When you want to put the pieces back together, UNIX supplies a useful command, which is the inverse of split: cat -- Art Kamlet a_s_kamlet@att.com AT&T Bell Laboratories, Columbus