All along, we have been looking at simple expressions when checking whether a condition has been meet or not. What if you want to use more then one expression to check for a particular condition in? In this article, we
In this sixth part of Awk series, we shall look at using next command, which tells Awk to skip all remaining patterns and expressions that you have provided, but instead read the next input line. The next command helps you
The Awk command series is getting exciting I believe, in the previous seven parts, we walked through some fundamentals of Awk that you need to master to enable you perform some basic text or string filtering in Linux. Starting with
In Part 8 of this Awk series, we introduced some powerful Awk command features, that is variables, numeric expressions and assignment operators. As we advance, in this segment, we shall cover more Awk features, and that is the special patterns:
As we uncover the section of Awk features, in this part of the series, we shall walk through the concept of built-in variables in Awk. There are two types of variables you can use in Awk, these are; user-defined variables,
When we write shell scripts, we normally include other smaller programs or commands such as Awk operations in our scripts. In the case of Awk, we have to find ways of passing some values from the shell to Awk operations.
When you review all the Awk examples we have covered so far, right from the start of the Awk series, you will notice that all the commands in the various examples are executed sequentially, that is one after the other.
All along from the beginning of the Awk series up to Part 12, we have been writing small Awk commands and programs on the command line and in shell scripts respectively. However, Awk, just as Shell, is also an interpreted
This guide takes a tour of some of the best command-line tools that are used for searching matching strings or patterns in text files. These tools are usually used alongside regular expressions – shortened as REGEX – which are unique
When we run certain commands in Unix/Linux to read or edit text from a string or file, we most times try to filter output to a given section of interest. This is where using regular expressions comes in handy. Read
In this part of our Linux Awk command series, we shall have a look at one of the most important features of Awk, which is field editing. It is good to know that Awk automatically divides input lines provided to
In the third part of the Awk command series, we shall take a look at filtering text or strings based on specific patterns that a user can define. Sometimes, when filtering text, you want to indicate certain lines from an
When dealing with numerical or string values in a line of text, filtering text or strings using comparison operators comes in handy for Awk command users. In this part of the Awk series, we shall take a look at how