Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!uw-beaver!milton!sumax!thebes!camco!rayj From: rayj@camco.Celestial.COM (Ray Jones) Newsgroups: comp.unix.admin Subject: Re: need help on unix Message-ID: <1088@camco.Celestial.COM> Date: 19 Jun 91 17:11:05 GMT References: <1991Jun11.005723.22179@unixg.ubc.ca> <1991Jun14.140007.6242@sci34hub.sci.com> Distribution: na Organization: Celestial Software, Mercer Island, WA Lines: 25 In <1991Jun14.140007.6242@sci34hub.sci.com> gary@sci34hub.sci.com (Gary Heston) writes: >In article <1991Jun11.005723.22179@unixg.ubc.ca> wangf@unixg.ubc.ca (Frank Wang) writes: >>Is that possible to delete some lines from a file (the file is so large that >>it's impossible to use any editor) without evoking any editors? >You can use dd to break the file into two or more parts, using the count >and skip options: >Nice program, dd. My thanks to whoever in the depths of AT&T wrote it. I agree, dd is a nice program, however, there is a utility program made just for this kind of problem. The program is "split" used to split large files into smaller files. The syntax is: split -n filename where n is the number of lines per smaller file. If n is not specified, the default is 1000 lines. The resultant filenames will have the name appended with .aa .ab ....zz -- Onager Systems Ray A. Jones 18710 NE 59th Ct. UUCP .....uunet!camco!onager!ray # 2053 ...ray@onager.Celestial.COM Redmond, WA 98052 206-885-3568