Article View: comp.mail.mush
Article #904Re: Head/tail on a message pipeline?
From: Barton E. Schaefer
Date: Sun, 21 May 1989 21:27
Date: Sun, 21 May 1989 21:27
23 lines
1281 bytes
1281 bytes
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
Technical Details
Message-ID:
<2834@ogccse.ogc.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!husc6!ogccse!schaeferReferences:
<7330010@grlab.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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