Return to BSD News archive
Xref: sserve comp.unix.user-friendly:2861 comp.unix.solaris:22542 comp.unix.programmer:19869 comp.unix.misc:13823 comp.unix.aux:15428 comp.unix.bsd:14852 comp.unix.aix:43806 Path: sserve!newshost.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!harbinger.cc.monash.edu.au!msuinfo!agate!library.ucla.edu!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: 4 Sep 1994 16:45:32 -0400 Organization: University of Maryland University College Lines: 19 Distribution: inet Message-ID: <ROCKWELL.94Sep4164530@nova.umd.edu> References: <33af70$8rd@usenet.INS.CWRU.Edu> <CHRISB.94Aug31104408@wombat.cssc-syd.tansu.com.au> <346r0i$kn1@sprocket.csv.warwick.ac.uk> <ROCKWELL.94Sep2081402@nova.umd.edu> <34d3f2$ca@sprocket.csv.warwick.ac.uk> NNTP-Posting-Host: nova.umd.edu In-reply-to: cudcv@csv.warwick.ac.uk's message of 4 Sep 1994 19:25:38 +0100 Raul Deluth Miller: . >lpr `set | egrep \^lpargs | cut -d= -f2-` Rob McMahon: . Sorry, it doesn't work. This splits all the arguments at white . space (returning 9 arguments "x" "y" "z" "x" "y" "z" "x" "y" "z" . instead of 3 "x y z" "x y z" "x y z" in the example. Using quotes: Sorry, I don't normally worry about that issue. Try eval lpr `set | egrep \^lpargs | cut -d= -f2- | while read l; do echo \"$l\"; done` Again, if you do this a lot, put it in a shell script. 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