3 ms·
There's a online website [0] for mawk 1.3.4 that accepts input data, command and shows output as you construct the command There's a handy github repo [1] with
by asicsp 6y ago
There's a online website [0] for mawk 1.3.4 that accepts input data, command and shows output as you construct the command
There's a handy github repo [1] with libraries, has one for csv. For json, see [2]. But yeah, having official support would be better. Or, use tools like xsv, jq, etc that are built for those formats.
You can use match() function to get capture group contents. If you are using GNU awk, then the syntax is much easier with arrays instead of fiddling with substr and RSTART/RLENGTH. For examples, see my repo [3]
[0] https://awk.js.org/ https://awk.js.org/
[1] https://github.com/e36freak/awk-libs https://github.com/e36freak/awk-libs
[2] https://github.com/step-/JSON.awk https://github.com/step-/JSON.awk
[3] https://github.com/learnbyexample/learn_gnuawk/blob/master/gnu_awk.md#match https://github.com/learnbyexample/learn_gnuawk/blob/master/g...
- fomine3 6y agoAWK REPL looks useful. TIL