RTFM... (really: sed -n 100,115p)
Leo de Wit
leo at philmds.UUCP
Fri May 19 00:32:57 AEST 1989
In article <611213677.29680 at ontmoh.UUCP> peter at ontmoh.UUCP (Peter Renzland) writes:
|bph at 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.
More information about the Comp.unix.questions
mailing list