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

Intel Dominates The Perf Changes For Linux 4.2

For those using perf for Linux profiling with performance counters, the Linux 4.2 kernel will bring many improvements to benefit Intel customers. Read more Also: Exciting Features Merged So Far For The Linux 4.2 Kernel

BeagleCore Open Source Internet Of Things Development Board (video)

BeagleCore is a new Internet of Things development board that has been created to be 100 percent open source and provide an easy way for makers, developers and hobbyists to have access to all all the core features of BeagleBone Black in a miniaturised computer module. Read more

Red Hat CEO Warns About Faux Open Source

Red Hat CEO Jim Whitehurst spent last week’s annual Summit praising the progress made in open source, but during his opening keynote he also warned attendees about companies that claim to be open source without actually encouraging open participation and innovation from a broad group of users. Read more

Check the Ubuntu Touch Wish List for Apps and New Features

If you have any questions regarding new features and apps that are present, absent, or in the works for the Ubuntu Touch platform, you need to know that there is already a comprehensive wish list out there that takes care of everything. Read more Also: Unity 8 Just Got a Cool 3D App Switcher for the Desktop