# awk

67 Hacker News commenters recommended awk and 18 criticized it, November 2025 to November 2026. It was recommended in 12 of 13 months. It meets the Hacker Approved badge rule.

**Verdict:** Small, stable language installed on nearly every POSIX system, well suited to quick text and CSV transforms. Critics say complex logic gets awkward and newer tools often do better.

## Why people recommend it

- Stable and available on POSIX systems (4 comments): "It doesn't change, is always installed on all POSIX platforms, easily interfaces with the command line, and is an easy to learn small language." ([source](https://news.ycombinator.com/item?id=46795327)) "knowing a bit awk, perl and sed might help as well, as they tend to be available by default." ([source](https://news.ycombinator.com/item?id=48990264)) "You can be confident your scripts will still work just the same in ten years." ([source](https://news.ycombinator.com/item?id=45937537))
- Quick one-liners for text transforms (4 comments): "can accomplish in a few readable lines what people write long programs to handle in other languages" ([source](https://news.ycombinator.com/item?id=47136706)) "this awesome tool for quick and dirty 1-3 line scripts to transform textual information" ([source](https://news.ycombinator.com/item?id=45983149)) "awk helped me condense a lot of stuff into a small number of LOC" ([source](https://news.ycombinator.com/item?id=45931970))
- Small language, easy to learn (3 comments): "It doesn't change, is always installed on all POSIX platforms, easily interfaces with the command line, and is an easy to learn small language." ([source](https://news.ycombinator.com/item?id=46795327)) "AWK is a tiny language that can be learned quickly, and it's ubiquitous" ([source](https://news.ycombinator.com/item?id=45981071)) "awk is so much better than sed to learn given its ability" ([source](https://news.ycombinator.com/item?id=45933347))
- Good for CSV and field splitting (4 comments): "CSV files parsed with custom reviewed AWK scripts can be 100% safe" ([source](https://news.ycombinator.com/item?id=49098371)) "I generally like awk a lot for simpler CSV/TSV processing" ([source](https://news.ycombinator.com/item?id=46647733)) "its default field separator treats runs of spaces as one" ([source](https://news.ycombinator.com/item?id=45934129))

## What people warn about

- Awkward for complex logic (2 comments): "awk syntax effectively requires learning a new language for complex logic" ([source](https://news.ycombinator.com/item?id=47237645)) "I've always found awk's "everything is global scope" as a huge limitation" ([source](https://news.ycombinator.com/item?id=45933325))
- Newer tools and languages do better (3 comments): "Honestly, yes, parquet and duckdb make all this easier than awk." ([source](https://news.ycombinator.com/item?id=45927695)) "Stop using awk, use a real programming language+shell instead" ([source](https://news.ycombinator.com/item?id=45931511)) "all are better than awk/sed/shell scripts" ([source](https://news.ycombinator.com/item?id=46004823))
- Fragile and slow on large files (2 comments): "grep and awk are extremely fragile because they have to look at what's inside" ([source](https://news.ycombinator.com/item?id=45907320)) "tired of waiting for grep/awk on multi-gigabyte logs" ([source](https://news.ycombinator.com/item?id=47040322))

## Alternatives hackers recommend

- [Lua](https://hackerapproved.com/p/lua.md): 186 recommend
- [AutoHotkey](https://hackerapproved.com/p/autohotkey.md): 44 recommend
- [GDScript](https://hackerapproved.com/p/gdscript.md): 22 recommend
- [AppleScript](https://hackerapproved.com/p/applescript.md): 19 recommend
- [Starlark](https://hackerapproved.com/p/starlark.md): 16 recommend

## Cite as

Hacker Approved, "awk", https://hackerapproved.com/p/awk/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
