*BSD News Article 35336


Return to BSD News archive

Xref: sserve comp.unix.user-friendly:2846 comp.unix.solaris:22318 comp.unix.programmer:19772 comp.unix.misc:13773 comp.unix.aux:15346 comp.unix.bsd:14826 comp.unix.aix:43592
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!europa.eng.gtefsd.com!news.umbc.edu!haven.umd.edu!nova.umd.edu!nova!rockwell
From: rockwell@nova.umd.edu (Raul Deluth Miller)
Newsgroups: comp.unix.user-friendly,comp.unix.solaris,comp.unix.programmer,comp.unix.misc,comp.unix.aux,comp.unix.bsd,comp.unix.aix
Subject: Re: Shell wars
Date: 2 Sep 1994 08:14:03 -0400
Organization: University of Maryland University College
Lines: 16
Distribution: inet
Message-ID: <ROCKWELL.94Sep2081402@nova.umd.edu>
References: <33af70$8rd@usenet.INS.CWRU.Edu>
	<CHRISB.94Aug29144419@wombat.cssc-syd.tansu.com.au>
	<33vj8d$b4i@sprocket.csv.warwick.ac.uk>
	<CHRISB.94Aug31104408@wombat.cssc-syd.tansu.com.au>
	<346r0i$kn1@sprocket.csv.warwick.ac.uk>
NNTP-Posting-Host: nova.umd.edu
In-reply-to: cudcv@csv.warwick.ac.uk's message of 2 Sep 1994 10:24:34 +0100

Rob McMahon:
. How do you do the next line I had in mind:
. lpr $lpargs:q
. (You don't know how many args there will be in advance.)  I find
. myself doing this rather a lot, and always end up using csh (or
. C).

lpr `set | egrep \^lpargs | cut -d= -f2-`

Put that pipeline in a script if you do it a lot.

-- 
Raul D. Miller           n =: p*q             NB. 9<##:##:n [.large prime p, q
<rockwell@nova.umd.edu>  y =: n&|&(*&x)^:e 1  NB. -.1 e.e e.&factors<:p,q [.e<n
                        NB.  public e, n, y
                        x -: n&|&(*&y)^:d 1  NB. 1=(d*e)+.p*&<:q