runawk is a small wrapper for the AWK interpreter that helps one write standalone AWK scripts. Its main feature is to provide a module/library system for AWK which is somewhat similar to Perl's "use" command. It also allows one to select a preferred AWK interpreter and to set up the environment for AWK scripts. Dozens of ready for use [modules].awk are also provided.
| Tags | Software Development Libraries Utilities |
|---|---|
| Licenses | MIT |
| Operating Systems | POSIX |
| Implementation | Awk C |
Recent releases


Release Notes: In exitnow.awk, the exitnow(status) function now finishes the execution of the script without running END sections even if status == 0. The new module io.awk includes the functions is_{file,dir,exec,socket,fifo,blockdev,chardev,symlink}, file_size, and file_type. tokenre.awk has the new function splitre0().


Release Notes: Internal arrays are now relocated automatically. This fixes use of runawk(1) in combination with xargs(1), e.g., cat files.txt | xargs runawk -e '...'.


Release Notes: A fix for an Intel C compiler warning message. A fix for the function shquote() from modules/shquote.awk. The source code of the project has been reorganized, thus allowing an easy installation of any subproject: examples, modules, runawk, alt_getopt, and doc (TODO, README, etc. files).


Release Notes: The build system has been changed from BSD mk files to mk-configure. New "heapsort_fields" and "heapsort0" functions were added to the heapsort.awk module. A "splitre" function was added to tokenre.awk.


Release Notes: A -F option was added. New ord.awwas ftrans_in.awk, and glob.awk modules were included. A new alt_getopt executable was included for parsing short and long options in shell scripts. New min3, min4, min5, min_key, min_value, and key_of_min_value (min.awk), and max3, max4, max5, max_key, max_value, and key_of_max_value (max.awk) functions were provided. New samples were added: examples/demo_minmax, examples/demo_tokenre3, examples/demo_ftrans, examples/demo_glob*. A new feature was added in multisub.awk. Minor improvements were made in the installation procedure.