Language Selection

English French German Italian Portuguese Spanish

Quick and Dirty Data Extraction in AWK

Filed under
HowTos

Need to pull some data from text--maybe e-mail messages--and sort it, graph it or otherwise manipulate it? Here's an AWK script to use as a starting point.

Many years ago, probably close to 20, a regular point was made on the comp Usenet newsgroups about using the minimum tool to get the job done. That is, someone would ask for a quick and dirty way to do something. The followups often included a C solution followed by an AWK solution followed by a sed solution and so on.

Today, I still try to use this philosophy when addressing a problem. In this particular case, explained below, I picked AWK. If any of you old-timers are reading this article, though, I expect you will come up with a sed-based solution.

The Problem: Extracting Data from E-mail Messages

Full Article.

More in Tux Machines

Epiphany Browser to Add New "Copy Image" Context Menu Item, Support IDN URLs

Even if it might not become your everyday web browser, Epiphany is getting much-deserved attention from the GNOME Project, which plans on implementing many new features for the next major release, Epiphany 3.24. Read more

Oracle Continues to Improve Linux 4.10 Kernel Support in New VirtualBox Releases

Oracle today, January 17, 2017, announced the release of VirtualBox 5.1.14 and 5.0.32, the seventh and sixteenth maintenance updates to the VirtualBox 5.1 and VirtualBox 5.0 stable series respectively. Read more

Meet the new Week view

This morning, I had some free hours to spend on my baby Calendar, and of course I’d spend on what matters the most: the Week view. I’ve been working on and off in this feature for quite a while, and the last missing piece was proper drag n’ drop support. Fear no more!, and say hello to the new Week view in GNOME Calendar Read more

Mycroft AI Intelligent Personal Assistant Now Available as a Raspberry Pi Image

It's been very quiet lately for the Mycroft project, an open-source initiative to bring a full-featured intelligent personal assistant to Linux desktops, but it looks like it's still alive and kicking, and it's now available as a Raspberry Pi image. Read more