Jump to content

Jawk

From Rosetta Code
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

$ java -jar jawk.1_02.jar 'BEGIN { print "Hello from JVM" }'

Caveat

The space after -F is not optional.

$ java -jar jawk.jar -F: '{ print $1 }'   # FAILS!!
$ java -jar jawk.jar -F : '{ print $1 }'  # ok
Cookies help us deliver our services. By using our services, you agree to our use of cookies.