I just wrote my first e-book ever about AWK one-liners. AWK one-liners are programs that fit on one line and do one thing, such as, numbering lines, printing certain lines, finding sums, etc. The book is 50 pages long and contains 70 well explained one-liners.
Read more »Announcing my first e-book "AWK One-Liners Explained"
Category: Beginner Tags:
- Login to post comments
Exercise #8: Counting and Sums with awk
awk may be used to count instances and also sum columns for reports. Often it is useful to use awk scripts for the output so that it can be formatted to your needs.
Read more »Category: Beginner Tags:
- Login to post comments
Exercise #5: Managing the Structure of the awk file
The awk file can be modified to include a BEGIN section and an END section that allows you to perform tasks before and after the records are processed.
Read more »Category: Beginner Tags:
- Login to post comments
Exercise 4: Starting with awk Scripts
Using awk scripts expands the possibilities with awk and provides an easy way to repeat searches on a number of files.
Read more »Category: Beginner Tags:
- Login to post comments
Exercise #2: Learning awk with Operators
When you use awk with operators levels, comparisons and ranges can be part of the data search.
Read more »Category: Beginner Tags:
- Login to post comments
Exercise #1: Learning awk Basics
By performing these basic commands you will begin to see the power and flexibility of the Linux utility awk. This exercise is designed to start you down the path of using awk.
Read more »Category: Beginner Tags:
- Login to post comments
Using Variables With awk
awk supports user defined variables as well as variables that are predefined. These variables do not need to be declared like they do in bash scripts. There are three types of variables.
Read more »Category: Beginner Tags:
- Login to post comments
How To Search Using The Awk Utility
The awk utility provides a powerful way to search for text strings using regex. This great tool will help you solve many Bash shell script needs.
Read more »Category: Beginner Tags:
- Login to post comments
Command Line Basics: Cut Fields With awk
There are times when you will want to trim some information from the output of a command. This may be because you want to feed that output into another command. Whatever the reason for wanting to manipulate the output, awk is one of many tools available in GNU/Linux to perform this task.
Read more »Category: End User Tags:
- Login to post comments
Famous Awk One-Liners Explained, Part III
"This is the third and final part of a three-part article on the famous Awk one-liners. This part will explain Awk one-liners for selective printing and deletion of certain lines. See part one for introduction of the series..."
Read more »Category: High End Tags:
- Login to post comments
Famous Awk One-Liners Explained, Part II
"This is the second part of a three-part article on the famous Awk one-liners. This part will explain Awk one-liners for text conversion and substitution..."
Read more »Category: High End Tags:
- Login to post comments
10 Awk Tips, Tricks and Pitfalls
"Hi guys and girls, this is the first guest post on my blog. It’s written by Waldner from #awk on FreeNode IRC Network. He works as a sysadmin and does shell scripting as a hobby. Waldner will be happy to take any questions about the article. You can ask them in the comments of this post or on IRC. This article takes a look at ten tips, tricks and pitfalls in Awk programming language.
Read more »Famous Awk One-Liners Explained, Part I
"...This is going to be a three-part article in which I will explain every single one-liner in Mr. Pement’s compilation. Each part will explain around 20 one-liners. If you follow closely then the explained examples will turn you into a great Awk programmer..."
Read more »- Login to post comments
Awk by example, Part 1
Awk is a very nice language with a very strange name. In this first article of a three-part series, Daniel Robbins will quickly get your awk programming skills up to speed. As the series progresses, more advanced topics will be covered, culminating with an advanced real-world awk application demo.
Read more »Category: High End Tags:
- Login to post comments
Perl and Bash Versions Of Binary To Decimal Conversion Script
Perl and Bash ports of our newbie program to convert binary numbers to decimal. Code written for ease-of-reading, where possible. If you don't script already; start! :)
Read more »Category: Beginner Tags:
- Login to post comments