2 ms·
I love awk. It’s everywhere and every time I am writing a shell script and work myself into a corner, awk has been the way out. I know exactly enough to be dan
by donatj 3y ago
I love awk. It’s everywhere and every time I am writing a shell script and work myself into a corner, awk has been the way out.
I know exactly enough to be dangerous and have meant to deep dive for almost a decade.
- coliveira 3y agoawk can be mastered by just reading the man page. The book doesn't take long to read either. Once you understand the simple principles, you can write an infinite number of scripts for all kinds of tasks.
- IggleSniggle 3y agoSee, when I'm writing a shell script interactively and work myself into a corner, I reach for awk, struggle with it for a bit, and then either: 1) succeed, and regret the messiness of the solution or 2) fail, and find a non-awk way to handle it. I really tried to like awk, but its portability hasn't been enough of a feature to raise it above other scripting languages for me. Especially if I'm going to end up in an editor