Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!uhccux!munnari.oz.au!cs.mu.oz.au!ok From: ok@cs.mu.oz.au (Richard O'Keefe) Newsgroups: comp.unix.questions Subject: Re: stripping off before ---- Summary: just use ed Message-ID: <2076@munnari.oz.au> Date: 11 Sep 89 03:30:24 GMT References: <1126@eagle.wesleyan.edu> Sender: news@cs.mu.oz.au Lines: 10 In article <1126@eagle.wesleyan.edu>, dkonerding@eagle.wesleyan.edu writes: > .. I'm using ed and vi, ... I need to get rid of everything before the > "---------" line. How can I accomplish this ... 1,/^--*$/d Delete from line 1 down to a line which consists entirely of dashes and contains at least one dash. More generally, you may want "unshar", a version of which was posted in 1988 by Bill Davidsen (davidsen@sixhub.uucp) as part of his "cshar" package.