Path: utzoo!mnetor!uunet!lll-winken!lll-tis!mordor!sri-spam!ames!pasteur!ucbvax!hplabs!hpcea!hpfcdc!hpfcdq!r_ellison From: r_ellison@hpfcdq.HP.COM (Bob Ellison) Newsgroups: comp.unix.questions Subject: Re: A little help with SED please - clarifications. Message-ID: <880001@hpfcdq.HP.COM> Date: 20 Apr 88 21:33:55 GMT References: <5490@sigi.Colorado.EDU> Organization: Hewlett-Packard - Fort Collins, CO Lines: 19 How about sed '/BEGIN/,/END/p d' files... in sh or ksh or sed '/BEGIN/,/END/p\ d' files... in csh? These lines will include the BEGIN and END in the output, but will strip all other lines. I'd prefer to use awk: awk '/BEGIN/,/END/' files... papillo the awkward Bob Ellison