Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!clout!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.unix.admin Subject: Re: need help on unix Message-ID: <1991Jun11.142027.17638@chinet.chi.il.us> Date: 11 Jun 91 14:20:27 GMT References: <1991Jun11.005723.22179@unixg.ubc.ca> Distribution: na Organization: Chinet - Chicago Public Access UNIX Lines: 14 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? Sure, if you can describe the portion to delete to sed (the stream editor) using line numbers or unique patterns in the text to identify the portion to delete: sed 'begin,endd' newfile should do it, where begin and end are either line numbers or a pattern enclosed in //'s. Les Mikesell les@chinet.chi.il.us