≡ Menu

Awk Tutorial Examples

9 Powerful Awk Built-in Functions for Numeric

Similar to awk built-in variables, awk also has lot of built-in functions for numeric, string, input, and ouput operations. Awk has the following three types of high level built-in function categories. Built-in functions for numeric operations Built-in functions for String operations Built-in functions for Input Output operations For those who are new to awk, please [...]

{ 4 comments }

AWK Arrays Explained with 5 Practical Examples

Awk programming language supports arrays. As part of our on-going awk examples series, we have seen awk user defined variables and awk built-in variables. Arrays are an extension of variables. Arrays are variable that hold more than one value. Similar to variables, arrays also has names. In some programming languages, arrays has to be declared, [...]

{ 15 comments }

This article is part of the on-going Awk Tutorial Examples series. In our earlier awk articles, we discussed about awk print, awk user-defined variables, awk built-in variables, awk operators, and awk conditional statements. In this article, let us review about awk loop statements – while, do while, for loops, break, continue, and exit statements along [...]

{ 6 comments }

This article is part of the on-going Awk Tutorial Examples series. In our earlier awk articles, we discussed about awk print, awk user-defined variables, awk built-in variables, and awk operators. In this awk tutorial, let us review awk conditional if statements with practical examples. Awk supports lot of conditional statements to control the flow of [...]

{ 21 comments }

This article is part of the on-going Awk Tutorial Examples series. In our earlier awk articles, we discussed about awk print, awk user-defined variables, and awk built-in variables. Like any other programming language Awk also has lot of operators for number and string operations. In this article let us discuss about all the key awk [...]

{ 2 comments }

This article is part of the on-going Awk Tutorial Examples series. Awk has several powerful built-in variables. There are two types of built-in variables in Awk. Variable which defines values which can be changed such as field separator and record separator. Variable which can be used for processing and reports such as Number of records, [...]

{ 42 comments }

This article is part of the on-going Awk Tutorial and Examples series. Like any other programming languages, Awk also has user defined variables and built-in variables. In this article let us review how to define and use awk variables. Awk variables should begin with the letter, followed by it can consist of alpha numeric characters [...]

{ 28 comments }

Yet Another Sudoku Puzzle Solver Using AWK

We have seen in a previous awk introduction article that awk can be an effective tool for everything from small one-liners up through some interesting applications. There are certainly more complex languages at our disposal if a situation calls for it; perl and python come to mind. Applications requiring networking support, database access, user interfaces, [...]

{ 12 comments }