Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!hplabs!otter!pjh From: pjh@otter.hpl.hp.com (Patrick Hyland) Newsgroups: comp.unix.questions Subject: Re: a SED question Message-ID: <1170009@otter.hpl.hp.com> Date: 7 Dec 88 18:40:05 GMT References: <1075@mtung.ATT.COM> Organization: Hewlett-Packard Laboratories, Bristol, UK. Lines: 18 If you're willing to use '-f' rather than '-e' then, the following sedscript does what you want: #n : noprint s/^[A-Z]/&/ t print n b noprint : print p n s/^[ ]/&/ t print b noprint Patrick Hyland.