I needed to run J from the unix command line, and I didn't find anything up
on jsoftware.com that seemed to fit the bill.

So I added a J entry to rosettacode that illustrates some of the concepts:

http://rosettacode.org/wiki/Multiline_shebang#J

Hypothetically speaking you could build J scripts to be used as filters in
unix pipelines. That's not really where J shines, but it's completely
doable.

Also not that if you want to use J's control structures in this kind of
context you can wrap them like this:

3 :0''
   if. test ARGV do.
      echo 'yep'
   end.
)

But note that names must be defined before they are used...

Thanks,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to