Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!mcvax!hp4nl!phigate!philmds!leo From: leo@philmds.UUCP (Leo de Wit) Newsgroups: comp.unix.questions Subject: Re: RTFM... (really: sed -n 100,115p) Message-ID: <1031@philmds.UUCP> Date: 18 May 89 14:32:57 GMT References: <2859@buengc.BU.EDU> <611213677.29680@ontmoh.UUCP> Reply-To: leo@philmds.UUCP (Leo de Wit) Organization: Philips I&E DTS Eindhoven Lines: 19 In article <611213677.29680@ontmoh.UUCP> peter@ontmoh.UUCP (Peter Renzland) writes: |bph@buengc.BU.EDU (Blair P. Houghton) writes: | |> ... |> I just can't seem to get sed(1) to print lines 110 through 115 of |> a file. It seems the most basic of things, but sed(1) insists on |> printing the whole file, no matter what I do... |> |> What is the proper one-liner syntax for that? | | sed -n 110,115p Make that sed -n -e 110,115p -e 115q and you even avoid reading the rest of the file. Leo.