need help on unix

Ray Jones rayj at camco.Celestial.COM
Thu Jun 20 03:11:05 AEST 1991


In <1991Jun14.140007.6242 at sci34hub.sci.com> gary at sci34hub.sci.com (Gary Heston) writes:

>In article <1991Jun11.005723.22179 at unixg.ubc.ca> wangf at 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 at onager.Celestial.COM
Redmond, WA 98052               206-885-3568 



More information about the Comp.unix.admin mailing list