logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

goawk - POSIX-compliant AWK interpreter with CSV support

Description

goawk is a POSIX-compliant AWK interpreter written in Go. Additionally, it has some features not provided
       by POSIX AWK:

       •   Code coverage.
       •   Proper CSV and TSV support.
       •   Negative field indexes to access fields from the right.
       •   Single-quoted strings.

Name

       goawk - POSIX-compliant AWK interpreter with CSV support

Options

       Standard AWK arguments:

       --csv
           Enable CSV input mode. Equivalent to -icsv.

       -Ffs
           Use fs for the input field separator.

       -Fprogfile
           Read the AWK program source from progfile. Multiple -f options may be used.

       -vvar=val
           Assign the value val to the variable var before the execution of the program begins.

       Additional GoAWK features:

       -c
           Use Unicode characters for index, length, match, substr, and %c.

       -Eprogfile
           Load  program  from  progfile, disable var=val arguments, stop processing arguments, parse header row
           and enable @"field" in CSV input mode.

       -H
           Parse header row and enable @"field" in CSV input mode.

       -h,--help
           Show the help message and exit.

       -imode
           Parse input into fields using CSV format, ignoring FS and RS.

       -omode
           Use CSV output, ignoring OFS and ORS.

       -version
           Show GoAWK version and exit.

       GoAWK debugging arguments:

       -coverappend
           Append to coverage file instead of overwriting.

       -covermodemode
           Set coverage mode, where mode is set or count (default: set).

       -coverprofilefile
           Write coverage profile to file.

       -cpuprofilefile
           Write cpu profile to file.

       -d
           Print parsed syntax tree to stdout and exit.

       -da
           Print VM assembly instructions to stdout and exit.

       -dt
           Print variable type information to stdout and exit.

       -memprofilefile
           Write memory profile to file.

See Also

gawk(1), mawk(1)

                                                   2024-09-18                                           goawk(1)

Synopsis

goawk [-Ffs] [-vvar=value] [-fprogfile | 'prog'] [file ...]

See Also