Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!rutgers!bellcore!texbell!swbatl!dwn From: dwn@swbatl.UUCP (4007) Newsgroups: comp.unix.questions Subject: Re: RTFM... I wish... (Re: appolgies "obviously") Message-ID: <536@swbatl.UUCP> Date: 14 May 89 20:25:47 GMT References: <1539@cmx.npac.syr.edu> <132@mcl.UUCP> <2859@buengc.BU.EDU> Reply-To: dwn@swbatl.UUCP (David Neill - OKCy Mktg 405-278-4007) Organization: Southwestern Bell Tele. Co. - Advanced Technology Lab - St. Louis Lines: 17 In article <2859@buengc.BU.EDU> bph@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