Newsgroups: comp.lang.apl
Path: watmath!watserv1!ljdickey
From: ljdickey@watserv1.waterloo.edu (Leroy J. Dickey)
Subject: stdin, stdout (Was: J questions
Message-ID: <1991Apr5.143326.6264@watserv1.waterloo.edu>
Mesg: Cannot determine name of current terminal
Organization: University of Waterloo
References: <WEG.91Apr2170248@convx1.convx1.ccit.arizona.edu>
Distribution: comp
Date: Fri, 5 Apr 1991 14:33:26 GMT
Lines: 29

In article <WEG.91Apr2170248@convx1.convx1.ccit.arizona.edu> weg@convx1.ccit.arizona.edu (Eythan Weg) writes:
>Hi there:

>2) Is there a way to use J in a filter like cat file|J|awk|J...?

I tried this little example.  
I created a file with these four lines in it:

                data =. i. 3 4 5
                +/ data
                +/ "1 data
                +/ "2 data 

and then issued the command:     cat t | J | more -5 .  All worked as 
expected.  In fact, the lines below were added to this file by the command

			! J < t

 60  63  66  69  72
 75  78  81  84  87
 90  93  96  99 102
105 108 111 114 117
 10  35  60  85
110 135 160 185
210 235 260 285
 30  34  38  42  46
110 114 118 122 126
190 194 198 202 206

