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

4007 dwn at swbatl.UUCP
Mon May 15 06:25:47 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...
>
>What is the proper one-liner syntax for that?
>
sed -n '110,115p' file

It's the "-n" option that tells sed to print nothing but lines
explicitly selected, or as TFM says, "The -n option suppresses the
default output."
-- 
David Neill       office -> 405-278-4007 -> swbatl!oktext!mktco
Mgr - Mktg.(SWBTCo) home -> 405-749-1141 -> swbatl!oktext!frodo!david



More information about the Comp.unix.questions mailing list