goawk(1)
πΈ goawk πΈ
okay bestie, so this one's from the General Commands Manual, section 1, and it's genuinely iconic β meet goawk. π
β¨ NAME β¨
goawk β a POSIX-compliant AWK interpreter with CSV support. yes you read that right. AWK. but with vibes. π¦
π SYNOPSIS π
goawk [-F fs] [-v var=value] [-f progfile | 'prog'] [file ...]
that's it. that's the whole summoning ritual. β¨
π DESCRIPTION π
so goawk is a POSIX-compliant AWK interpreter written in Go. she does everything regular AWK does, no cap. but ALSO β and this is the part that has me screaming β she has some extra features POSIX AWK simply does not have:
- Code coverage. yes fr, coverage. π
- Proper CSV and TSV support. proper. not the janky kind. π
- Negative field indexes, so you can grab fields from the right side. main character energy honestly. π«
- Single-quoted strings. because sometimes you just want to, okay? π«Ά
she ate. periodt.
π OPTIONS π
π Standard AWK arguments
the classics. the originals. the ones your awk-fluent auntie already knows.
--csvβ turns on CSV input mode. literally the exact same thing as-i csv, just typed differently, iykyk.-F fsβ usefsas the input field separator. that's it, that's the job.-F progfileβ read the AWK program source out ofprogfile. you can stack multiple-foptions if you're feeling extra. π-v var=valβ assign the valuevalto the variablevar, and do it before the program even starts running. pre-game assignment, we love to see it.--csvβ
wait no, ignore that, I already did --csv. moving on bestie π
-v var=valβ already covered, she's fine, we're fine, everything's fine.
hold on. let me re-read the list properly, I got excited. here we go, for real this time:
--csvβ enable CSV input mode. Equivalent to-i csv. β¨-F fsβ usefsfor the input field separator. πΈ-F progfileβ read the AWK program source fromprogfile. Multiple-foptions may be used. π¦-v var=valβ assign the valuevalto the variablevarbefore the execution of the program begins. π
there. four options. nobody panic. the vibes remain immaculate. π«Ά
π₯ Additional GoAWK features
these are the ones that make her her. the deluxe edition. the DLC you didn't have to pay for. π
-cβ use Unicode characters forindex,length,match,substr, and%c. unicode girlies rise up π-E progfileβ load the program fromprogfile, disablevar=valarguments, stop processing arguments, parse the header row, and enable@"field"in CSV input mode. she does a LOT in one letter, it's giving multitasking icon π-Hβ parse the header row and enable@"field"in CSV input mode. π-h,--helpβ show the help message and exit. your friendly lil escape hatch π«Ά-i modeβ parse input into fields using CSV format, ignoringFSandRS. yes bestie, she's overriding them, that's the whole point β¨-o modeβ use CSV output, ignoringOFSandORS. same energy, output side π-versionβ show the GoAWK version and exit. just a lil peek π
β οΈ okay heads up queen β those last two,-i modeand-o mode? they are NOT shy. they straight up ignoreFS,RS,OFS, andORS. if you set those variables expecting them to matter here, they will simply not be consulted. that's not a bug, that's the deal. π
π§ GoAWK debugging arguments
the inner-workings zone. nerdy in the best way. β
-coverappendβ append to the coverage file instead of overwriting it. so you don't lose your previous runs, cute π-covermode modeβ set coverage mode, where mode issetorcount. default isset. β¨-coverprofile fileβ write the coverage profile tofile. π-cpuprofile fileβ write the cpu profile tofile. π₯-dβ print the parsed syntax tree to stdout and exit. see the bones of your program π-daβ print VM assembly instructions to stdout and exit. down to the metal bestie βοΈ-dtβ print variable type information to stdout and exit. the tea on your types β-memprofile fileβ write the memory profile tofile. π
π¦ SEE ALSO π¦
go check out her cousins, they're family:
and that's the whole page, bestie!! π slay. this was the goawk(1) manual page, from the General Commands Manual, and the footer says 2026-02-03 β so that's the date stamp, she's dated February 3, 2026. go forth and awk responsibly. πβ¨πΈπ«Άπ
π¦ where this page comes from
- ubuntu resolute: goawk 1.29.0-1build1 Β· MIT
- ubuntu stonking: goawk 1.29.0-1build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms