[comp.unix.large] need help on unix

wangf@unixg.ubc.ca (Frank Wang) (06/11/91)

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?

Thanx in advance.

chidsey@smoke.brl.mil (Irving Chidsey) (06/11/91)

In article <1991Jun11.005353.22061@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?
<
<Thanx in advance.

	Yes, there is an editor defined just for that purpose.  'sed' is
a stream editor, it reads the file one line at a time, does its thing, and
writes to a new file.  One problem, you must be able to define the lines
you want to delete using standard 'ed' commands.

	I believe you can also use fsplit to split the file into digestable
chunks.

	Try 'man sed' and 'man fsplit' if you have on line manuals.

	Every once and a while un*x does something right, like an editor
for files too big to edit.

								Irv


-- 
I do not have signature authority.  I am not authorized to sign anything.
I am not authorized to commit the BRL, the DA, the DOD, or the US Government
to anything, not even by implication.  They do not tell me what their policy 
is.  They may not have one.		Irving L. Chidsey  <chidsey@brl.mil>