Back to Home11/18/2025, 1:55:51 PM

Show HN: Strawk – I implemented Rob Pike's forgotten Awk

1 points
0 comments

Mood

thoughtful

Sentiment

positive

Category

tech

Key topics

Unix

Awk

Regular Expressions

Rob Pike wrote a paper, Structural Regular Expressions (https://doc.cat-v.org/bell_labs/structural_regexps/se.pdf), that criticized the Unix toolset for being excessively line oriented. Tools like awk and grep assume a regular record structure usually denoted by newlines. Unix pipes just stream the file from one command to another, and imposing the newline structure limits the power of the Unix shell.

In the paper, Mr. Pike proposed an awk of the future that used structural regular expressions to parse input instead of line by line processing. As far as I know, it was never implemented. So I implemented it. I attempted to imitate AWK and it's standard library as much as possible, but some things are different because I used Golang under the hood.

Live Demo: https://ahalbert.github.io/strawk/demo/strawk.html

Github: https://github.com/ahalbert/strawk

The author implemented Rob Pike's proposed 'awk of the future' using structural regular expressions, and shared the project on Github and a live demo.

Snapshot generated from the HN discussion

Discussion Activity

No activity data yet

We're still syncing comments from Hacker News.

Generating AI Summary...

Analyzing up to 500 comments to identify key contributors and discussion patterns

Discussion (0 comments)

Discussion hasn't started yet.

ID: 45966006Type: storyLast synced: 11/18/2025, 1:56:40 PM

Want the full context?

Jump to the original sources

Read the primary article or dive into the live Hacker News thread when you're ready.