RTFM... I wish... (Re: appolgies "obviously")

Andrew Koenig ark at alice.UUCP
Mon May 15 02:20:38 AEST 1989


In article <2859 at buengc.BU.EDU>, bph at buengc.BU.EDU (Blair P. Houghton) writes:

> In that vein, I've R'ed TMFM, and I've twiddled the permutations, but
> 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...

	sed -n 110,115p <file

Unless you say -n, sed prints every line.  That's because sed is
so often used to transform every line of a file the same way.
-- 
				--Andrew Koenig
				  ark at europa.att.com



More information about the Comp.unix.questions mailing list