Skip to content
Interpreter for jawk, an awk-like data proccessing language with JavaScript syntax.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
lib
.gitignore
LICENSE
README.md
jawk.js
package.json

README.md

jawk

Interpreter for jawk, an awk-like data proccessing language with JavaScript syntax.

Dedication

jawk is dedicated to Paul Inman, a gentleman and a scholar and, most importantly, a lover of awk.

What jawk Isn't

jawk is not a drop-in replacement for awk; what would be the point of that? Instead, jawk takes the basic concept of awk (a terse, data-driven language), and implements that with JavaScript syntax. If you use JavavScript every day (and if you work in the web world, you probably do), and you love awk, and you're tired of remembering a million syntactic idiosyncracies, well, jawk just might be for you.

What's Working

This list represents a high-level punch-list of what functionality has been implemented.

  • BEGIN and END rules
  • Regular expression rules
  • RS variable
  • Field variables ($0 - $n and NF)
  • NR and RS variables
  • printf support

What's Not Working

  • stdin input
  • Multi-line functions
  • Expression rules ($1='foo' { print() })
You can’t perform that action at this time.