From Script | Spoken-Tutorial
Jump to: navigation, search
Time Narration
00:01 Hello and welcome to the spoken tutorial on Overview of Linux AWK commands.
00:08 In this tutorial, we will learn about Linux AWK and the tutorials covered in the Linux AWK series.
00:17 To record this tutorial, I am using Ubuntu Linux 16.04 Operating System.
00:24 AWK is used for searching and extracting data from a file.
00:30 We can also manipulate the data and generate reports using AWK.
00:36 Like any programming language, AWK also has-



00:41 conditional Statements,


00:45 single and multi dimensional arrays,

Built-in Functions and User Defined functions.

00:52 During the search process, a file will be treated as a sequence of records.
00:58 Each line will be considered as a single record with multiple fields.
01:04 Then AWK searches for the given pattern and performs the desired action.
01:11 Now, we will briefly go through some of the individual AWK tutorials in this series.
01:18 Basics of awk-

This tutorial explains some basic operations in AWK like:

01:25 how to print the processed output and

using regular expressions.

01:31 Let’s have a look at this tutorial.
------------Add the audio (Basic of AWK from 04:09 to 04:15)---------------
01:43 Variables and Operators-

Here, we will learn how to use: User defined variables,

01:51 Variable initialisation,


01:55 String Concatenation & matching operator,

BEGIN and END statement in AWK.

02:03 Let’s have a look at this tutorial.
----------Add the audio (Variables and Operators - 03:50 to 03:59 )-------------
02:16 Built-In variables-
02:18 This tutorial explains about the following built-in variables in AWK like:
02:24 RS, FS,




02:34 This tutorial also teaches how to write an AWK script.
02:39 Here is a glimpse of this tutorial.
---------------Add the audio (Built-In variables -11:49 to 11:59 )------------
02:53 Conditional statements-

In this tutorial, we will learn how to use the conditional statements like:

If, else , else if in awk.

03:04 Let’s have a look at this tutorial.
---------------Add the audio (Conditional statements -02:50 to 03:02 )------------
03:21 Loops-

Here, we will discuss about Conditional loops in AWK like- for, while and do-while loop.

03:31 We will also learn search pattern using AWK,
03:35 process data from a single or multiple files.
03:40 Let’s take a look at this tutorial.
---------------Add the audio (Loops in awk -04:06 to 04:14 )------------
03:53 Basics of Single Dimensional Array tutorial explains:

assigning array elements,

03:59 refer the elements of an array,

indexing AWK arrays,

04:04 advantage of associative array,
04:07 checking whether any element exists in an array at a certain index.
04:14 Here is a glimpse of this tutorial.
---------------Add the audio (Basics of Single Dimensional Array - 03:10 to 03:22 )------------
04:30 This advanced level tutorial on Single dimensional array explains-

using AWK array with file,

scan the elements of an array ,

04:41 new variation of "for" loop,

delete an array element,

04:47 delete the whole array,
04:50 values of ARGC and ARGV.
04:54 Let’s have a look at this tutorial.
---------------Add the audio (More on Single Dimensional Array in awk from 04:59 to 05:09)------------
05:08 Multi Dimensional Array in AWK explains -
05:12 Identifying an element by a sequence of multiple indices,
05:17 Concatenated into a single string,
05:20 Create 2 by 2 multidimensional array in AWK,
05:24 Create the transpose of a 2 by 2 matrix,
05:28 scan the multidimensional array ,
05:31 combine the for loop with the split function.
05:35 Let’s take a look at this tutorial.
---------------Add the audio (multidimensional array - 06:24 to 06:33 ) ------------
05:48 Built-in Functions-

In this, we will learn about AWK built-in functions like:

Arithmetic functions,

05:57 Random functions,

String functions,

06:01 Input and Output functions and Timestamp functions.
06:07 Here is a glimpse of this tutorial.
---------------Add the audio (Built-in Functions - from 10:01 to 10:14)------------
06:23 In User defined functions tutorial, we will learn -

How to create our own function,

06:30 Function call,

Return statement and

Reverse function.

06:37 Here is a glimpse of this tutorial.
---------------Add the audio (User defined functions -03:28 to 03:41 )------------
06:54 With this, we come to the end of this tutorial.

Let us summarise.

07:00 In this tutorial, we learnt about AWK and went through the tutorials in this series.
07:08 The video at the following link summarises the Spoken Tutorial project.

Please download and watch it.

07:16 The Spoken Tutorial Project team conducts workshops and gives certificates.

For more details, please write to us.

07:26 Do you have questions in THIS Spoken Tutorial?

Please visit this site.

07:31 Choose the minute and second where you have the question.

Explain your question briefly.

07:38 Someone from our team will answer them.
07:42 The Spoken Tutorial forum is for specific questions on this tutorial.
07:47 Please do not post unrelated and general questions on them.
07:52 This will help reduce the clutter.

With less clutter, we can use these discussion as instructional material.

08:01 Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.

More information on this mission is available at this link.

08:12 This is Praveen from IIT Bombay, signing off. Thank you for joining.

Contributors and Content Editors

PoojaMoolya, Sakinashaikh, Sandhya.np14