Thread View: comp.unix.large
2 messages
2 total messages
Started by Frank Wang
Tue, 11 Jun 1991 00:53
need help on unix
Author: Frank Wang
Date: Tue, 11 Jun 1991 00:53
Date: Tue, 11 Jun 1991 00:53
4 lines
693 bytes
693 bytes
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.
Re: need help on unix
Author: Irving Chidsey
Date: Tue, 11 Jun 1991 12:06
Date: Tue, 11 Jun 1991 12:06
27 lines
1544 bytes
1544 bytes
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>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads