Hey there,

As new user to J (but several years experience with C and Java), I
find it very, very interesting. The power of its one liners and
mathematical heritage really have me hooked.  I was wondering though
if it has similar capabilities as awk. What's the equivalent to this
awk script in J?:

BEGIN { FS=";" }
{ print $1+$2 }

This script sets a FieldSeparator to ;, and then for every "row", add
the first and second column and prints it. I would like to replace awk
with J!

Thank you,

Lee

P.S. Excuse me if I've misidentified J sentences. (Sentences -> statements?)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to