Jawk: Difference between revisions
Content added Content deleted
(Jawk is AWK in JVM.) |
(No difference)
|
Revision as of 04:42, 9 September 2011
Jawk is an implementation of AWK.
Other implementations of AWK.
Jawk runs an Awk program inside the Java Virtual Machine.
Quick start
Go to http://sourceforge.net/projects/jawk/ and download the latest jar. Then run a command like
<lang awk>$ java -jar jawk.1_02.jar 'BEGIN { print "Hello from JVM" }'</lang>
Caveat
The space after -F is not optional.
<lang awk>$ java -jar jawk.jar -F: '{ print $1 }' # FAILS!! $ java -jar jawk.jar -F : '{ print $1 }' # ok</lang>