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

Clonezilla Live 2.5.0-25 Stable Release Is Powered by Linux 4.9.6 and Debian Sid

Clonezilla Live and GParted Live creator Steven Shiau announced the availability of a new stable release of Clonezilla Live, versioned 2.5.0-25, bringing the latest GNU/Linux technologies and up-to-date software components. Based on the Debian Sid repository as of February 20, 2017, Clonezilla Live 2.5.0-25 is now powered by the Linux 4.9.6 kernel and ships with a bunch of new packages, including Nmap, bicon, sshpass, keychain, and monitoring-plugins-basic. Read more

War Thunder on GNU/Linux and More on SteamVR