Path: utzoo!attcan!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: <1033@philmds.UUCP> Date: 19 May 89 06:47:37 GMT References: <2859@buengc.BU.EDU> <611213677.29680@ontmoh.UUCP> <1031@philmds.UUCP> <7298@bsu-cs.bsu.edu> Reply-To: leo@philmds.UUCP (Leo de Wit) Organization: Philips I&E DTS Eindhoven Lines: 17 In article <7298@bsu-cs.bsu.edu> dhesi@bsu-cs.bsu.edu (Rahul Dhesi) writes: |In article <1031@philmds.UUCP> leo@philmds.UUCP (Leo de Wit) writes: |> sed -n -e 110,115p -e 115q |> |>and you even avoid reading the rest of the file. | |Careful! If sed was reading from a pipe, this will cause an EPIPE |("broken pipe") error. So what? I see SIGPIPE as a legitimate means to tell the input process: thank you, we don't need your service anymore. Are you implying that each filter should read all its input ?? Leo. P.S. /usr/new/csh in Ultrix seems overzealous in this respect to: try ls -la|head (on a fairly large directory).