RTFM... (really: sed -n 100,115p)
Leo de Wit
leo at philmds.UUCP
Fri May 19 16:47:37 AEST 1989
In article <7298 at bsu-cs.bsu.edu> dhesi at bsu-cs.bsu.edu (Rahul Dhesi) writes:
|In article <1031 at philmds.UUCP> leo at 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).
More information about the Comp.unix.questions
mailing list