Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!husc6!ogccse!schaefer From: schaefer@ogccse.ogc.edu (Barton E. Schaefer) Newsgroups: comp.mail.mush Subject: Re: Head/tail on a message pipeline? Message-ID: <2834@ogccse.ogc.edu> Date: 21 May 89 21:27:21 GMT References: <7330010@grlab.UUCP> Reply-To: schaefer@ogccse.UUCP (Barton E. Schaefer) Organization: Oregon Graduate Center, Beaverton, OR Lines: 23 In article <7330010@grlab.UUCP> scott@grlab.UUCP (Scott Blachowicz) writes: } Is there a way to do the equivalent of head/tail commands on message numbers } in a pipeline? (e.g. pick -s 'backup done' | tail +2 | delete) } } Scott Blachowicz } scott@grlab.UUCP You can redefine your pager: set oldpager = "$pager" pager = 'tail +2' pick -s 'backup done' | p | d set pager = "$oldpager" unset oldpager Each message is sent individually to $pager, so you get the effect you want. Compare to the "pipe" command, with attention to the way it works when you have used "set unix". -- Bart Schaefer "And if you believe that, you'll believe anything." -- DangerMouse CSNET / Internet schaefer@cse.ogc.edu UUCP ...{sequent,tektronix,verdix}!ogccse!schaefer