Get the latest tech news

Awk in 20 Minutes (2015)


What's Awk Awk is a tiny programming language and a command line tool. It's particularly appropriate for log parsing on servers, mostly because Awk will operate on files, usually structured in lines of human-readable text.

This personally happens to me when some Erlang nodes tend to die and leave a crash dump of 700MB to 4GB behind, or on smaller individual servers (say a VPS) where I need to quickly go through logs, looking for a common pattern. What's specifically more like PHP and Javascript is the comparison operator,==, which will do fuzzy matching, so that the string"23" compares equal to the number 23, such that"23" == 23 is true. I still have a few files I carry around for some usage and metrics, my favorite one being a script used to parse Erlang crash dumps shaped like this:

Get the Android app

Or read this on Hacker News

Read more on:

Photo of minutes

minutes

Photo of awk

awk

Related news:

News photo

Wild human washing machine promises to rinse you clean in 15 minutes

News photo

6 Minutes. 62 People. 1 Epic ‘Sunset Boulevard’ Sequence.

News photo

A New Way to Learn Complex Topics in Minutes a Day