Share

Jawk

Code

Programming Languages: Java

License: GNU General Public License (GPL)

Repositories

browse code, statistics, last commit on 2002-05-14 cvs -d:pserver:anonymous@jawk.cvs.sourceforge.net:/cvsroot/jawk login

cvs -z3 -d:pserver:anonymous@jawk.cvs.sourceforge.net:/cvsroot/jawk co -P modulename

Show:

What's happening?

  • callback

    Hi, I've been running a awk script using Awk.invoke which works very nicely. I'm now looking for a way to return an object from the script. Alternatively I would like to register a callback object that the script can use to make calls against and then have other parts of the application make use of that object also. TIA, Kirk.

    2009-11-13 16:01:15 UTC by https://www.google.com/accounts

  • Followup: RE: How install Jawk in windows

    Hi. I'm very sorry for the big delay. Windows installs are often tricky because there is so much opportunity for "non-standard" installations. Your best bet is to put the jawk.jar file into your Java's "lib" dir. To do this, look for the Java install dir, usually found in C:\Program Files. For example, if your Java install dir is "C:\Program...

    2009-10-24 12:58:54 UTC by ddaglas

  • Followup: RE: using extensions

    awkuser, Sorry for the big delay. You can save a parsed form of the script into an intermediate form with the -c parameter. By default, -c parses and dumps the awk script into an intermediate form and saves it to "a.ai" (or to a different filename via the -o param). Running jawk with the "a.ai" script runs jawk in interpreted mode. Therefore, you can use the -ext and...

    2009-10-24 11:55:24 UTC by ddaglas

  • using extensions

    Is there a way to use extensions and to not distribute the source for the AWK script?.

    2009-07-10 16:08:50 UTC by awkuser

  • How install Jawk in windows

    Hello, i am new in this forum and I have the following the question, how can I install Jawk in windows? I dowloaded the jawk.jar but i do not understand how to use it , i worked with awk and i want to create the aplication in java using awk. I would appreciate if someone could help me.

    2009-07-10 01:31:51 UTC by pandemonium21

  • Followup: RE: Compile problem w./ BCEL

    For what it's worth, this command works: # java -cp "/root/src/bcel-5.2/bcel-5.2.jar:./jawk.1_02.jar:$CLASSPATH" org.jawk.Awk -f /root/my-contacts/contacts.awk -Z It's not clear to me what makes the difference. There are also subtle differences in behavior when the awk code is compiled which required me to make changes to the original code, for example by setting the FS builtin...

    2009-06-16 18:15:10 UTC by sjungels

  • Compile problem w./ BCEL

    Jawk works fine in interpreted mode. When I try to compile with the -z or -Z flags, I get the following: deb:~/my-contacts# java -cp "/root/src/bcel-5.0/bcel.jar:$CLASSPATH" -jar $JAWK_JAR -f contacts.awk -z Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/bcel/generic/Instruction at java.lang.Class.forName0(Native Method) at...

    2009-06-12 14:11:28 UTC by sjungels

  • Followup: RE: Best way to use JAWK in an app?

    From what I see in the javadoc you could create an instance of the class Awk and use the stream interface for input and output. You might have to jump through a couple of hoops to make the big string (character based) look like an inputstream (byte based). Correspondingly getting the PrintStream to fill up a StringWriter or StringBuilder could be a minor challenge. But definitely doable. At...

    2009-02-03 21:13:04 UTC by forkalsrud

  • Best way to use JAWK in an app?

    I'm VERY new to JAWK (just downloaded it yesterday) and I'm looking for a little direction. I have a scenario where I have a log file already loaded into memory for an application. It's stored in a HUGE string. I need to be able to execute simple AWK scriptlets against that string. As an example, a typical "scriptlet" (as I call it) would be something like: {if ($10 > 3000...

    2009-02-03 20:36:24 UTC by rcobb1

  • Comment: Bracket not taken into account in math expression

    Try this program to see what I mean: (It seems to be multiplication in bracket that makes funny thing) BEGIN{ a=100 b=5 c=3 d=2 e=7 f=77 print "506= " a*b+c*d print "117= " a+b*c+d print "494= " (a-34)*7+int((a-3)/3) print "31.6666= " (a-b)/c print "15.8333= " (a-b)/(c*d) print "742= " (a-b*(c-d))*e+f print "2464= " (int((a-b-1)/c)+1)*f print "996= " (a-1)*b*2+c+(f-d)%(c*2)

    2008-11-19 13:43:41 UTC by nobody

Our Numbers