What does HackerNews think of pawk?

PAWK - A Python line processor (like AWK)

Language: Python

Alec Thomas wrote a script like this called pawk.py (https://github.com/alecthomas/pawk). It reads input automatically, and for each line, defines "n" and "f" to the line number and fields list (among other things). It even supports /regex/ patterns. Even the print is implicit. So the example above would be:

  pawk '/^[A-Za-z]/ (n, f[1])'
By the way, triple backticks don't work on HN. You have to indent by 2 spaces to get a code block.
> I would never want to write a python program for quick analysis of a log file when I can grep/sed/awk/sort/uniq my way to a solution.

Yeah but I would wager very few people actually know awk. I would also wager 90+% of awk programs are pasted directly from StackOverflow.

That's why I like the idea of pawk[1] - it's like awk, except with python syntax instead of some esoteric syntax that nobody knows.

[1] https://github.com/alecthomas/pawk

You may consider adding to awk-like group of programs pawk:

https://github.com/alecthomas/pawk

It gives you a more readable and concise way to select a colum, split it and sau snip out few characters.

I recently wrote PAWK (https://github.com/alecthomas/pawk) in order to give me Python at the command line. It's exactly what you think it is: Python AWK.

It's served me well so far.