stripping off before ----

Richard O'Keefe ok at cs.mu.oz.au
Mon Sep 11 13:30:24 AEST 1989


In article <1126 at eagle.wesleyan.edu>, dkonerding at 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 at sixhub.uucp)
as part of his "cshar" package.



More information about the Comp.unix.questions mailing list