need help on unix

Irving Chidsey chidsey at smoke.brl.mil
Tue Jun 11 22:06:57 AEST 1991


In article <1991Jun11.005353.22061 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?
<
<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 at brl.mil>



More information about the Comp.unix.large mailing list