Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!asuvax!noao!amethyst!math.arizona.edu!weg From: weg@convx1.ccit.arizona.edu (Eythan Weg) Newsgroups: comp.lang.apl Subject: J questions Message-ID: Date: 3 Apr 91 00:02:48 GMT Sender: news@amethyst.math.arizona.edu Distribution: comp Organization: University of Arizona, Economics Dept. Lines: 13 Hi there: I have a few questions to J-wise people: 1) Let us define a conjunction say t=.2 : ' x. y.'. Suppose I do +/ t 1 2. The answer is 3. Now suppose a=.2 2 $1 2 3 4. I want t to operate on the cells of rank 1 of a. I do I use the rank conjunction to obtain the sum of the rows of a? I want to use t. 2) Is there a way to use J in a filter like cat file|J|awk|J...? 3) Quite generally can one imagine J acting as a shell? Thanks, Eythan