Difference between revisions of "Linux-AWK/C2/Overview-of-Linux-AWK/English-timed"
PoojaMoolya (Talk | contribs) |
Sandhya.np14 (Talk | contribs) |
||
Line 8: | Line 8: | ||
|- | |- | ||
|| 00:01 | || 00:01 | ||
− | || Hello and welcome to the spoken tutorial on '''Overview of Linux AWK | + | || Hello and welcome to the '''spoken tutorial''' on '''Overview of Linux AWK''' commands. |
|- | |- | ||
|| 00:08 | || 00:08 | ||
− | || In this tutorial we will learn about '''Linux AWK''' and | + | || In this tutorial, we will learn about '''Linux AWK''' and the tutorials covered in the '''Linux AWK''' series. |
|- | |- | ||
|| 00:17 | || 00:17 | ||
− | || To record this tutorial, I am using '''Ubuntu Linux 16.04 Operating System''' | + | || To record this tutorial, I am using '''Ubuntu Linux 16.04 Operating System'''. |
|- | |- | ||
|| 00:24 | || 00:24 | ||
− | || '''AWK''' is | + | || '''AWK''' is used for searching and extracting data from a file. |
|- | |- | ||
Line 28: | Line 28: | ||
|- | |- | ||
||00:36 | ||00:36 | ||
− | || Like any programming language, '''AWK''' also has ''' | + | || Like any programming language, '''AWK''' also has- |
+ | '''variables''', | ||
− | ''' | + | '''operators''', |
|- | |- | ||
|| 00:41 | || 00:41 | ||
− | || ''' | + | || '''conditional Statements''', |
− | '''Loops''' | + | '''Loops''', |
|- | |- | ||
|| 00:45 | || 00:45 | ||
− | || | + | || single and multi dimensional arrays, |
− | '''Built-in | + | '''Built-in Function'''s and |
+ | '''User Defined function'''s. | ||
|- | |- | ||
|| 00:52 | || 00:52 | ||
− | || During the search process | + | || During the search process, a file will be treated as a sequence of '''record'''s. |
|- | |- | ||
|| 00:58 | || 00:58 | ||
− | || Each line will be considered as a single record with multiple | + | || Each line will be considered as a single record with multiple '''field'''s. |
|- | |- | ||
|| 01:04 | || 01:04 | ||
− | || Then '''AWK '''searches for the given pattern | + | || Then '''AWK '''searches for the given pattern and performs the desired action. |
|- | |- | ||
Line 62: | Line 64: | ||
|- | |- | ||
|| 01:18 | || 01:18 | ||
− | || '''Basics of awk''' | + | || '''Basics of awk'''- |
− | This tutorial explains some basic operations in '''AWK''' like | + | This tutorial explains some basic operations in '''AWK''' like: |
|- | |- | ||
|| 01:25 | || 01:25 | ||
− | || | + | ||how to print the processed output and |
+ | using regular expressions. | ||
|- | |- | ||
Line 80: | Line 83: | ||
|- | |- | ||
|| 01:43 | || 01:43 | ||
− | || '''Variables and Operators''' | + | || '''Variables and Operators'''- |
− | Here we will learn how to use | + | Here, we will learn how to use: |
+ | '''User defined variables''', | ||
|- | |- | ||
|| 01:51 | || 01:51 | ||
− | ||'''Variable''' initialisation | + | ||'''Variable''' initialisation, |
− | '''Operators''' | + | '''Operators''', |
|- | |- | ||
|| 01:55 | || 01:55 | ||
− | ||'''String Concatenation''' & matching '''operator''' | + | ||'''String Concatenation''' & matching '''operator''', |
− | '''BEGIN''' and '''END statement''' in '''AWK''' | + | '''BEGIN''' and '''END statement''' in '''AWK'''. |
|- | |- | ||
Line 106: | Line 110: | ||
|- | |- | ||
|| 02:16 | || 02:16 | ||
− | || '''Built-In variables''' | + | || '''Built-In variables'''- |
|- | |- | ||
Line 114: | Line 118: | ||
|- | |- | ||
|| 02:24 | || 02:24 | ||
− | ||'''RS, FS''' | + | ||'''RS, FS''', |
− | '''ORS, OFS''' | + | '''ORS, OFS''', |
− | '''NR, NF''' | + | '''NR, NF''', |
− | '''ARGV, ARGC''' | + | '''ARGV, ARGC'''. |
|- | |- | ||
|| 02:34 | || 02:34 | ||
− | || | + | ||This tutorial also teaches how to write an '''AWK script.''' |
|- | |- | ||
Line 136: | Line 140: | ||
|- | |- | ||
||02:53 | ||02:53 | ||
− | || '''Conditional statements''' | + | || '''Conditional statements'''- |
In this tutorial, we will learn how to use the '''conditional statements''' like: | In this tutorial, we will learn how to use the '''conditional statements''' like: | ||
− | '''If''', '''else''' , '''else if '''in''' awk ''' | + | '''If''', '''else''' , '''else if '''in''' awk. ''' |
|- | |- | ||
Line 152: | Line 156: | ||
|- | |- | ||
|| 03:21 | || 03:21 | ||
− | || '''Loops'''- Here we will discuss about '''Conditional loops''' in '''AWK''' like '''for, while''' and '''do-while loop''' | + | || '''Loops'''- |
+ | Here, we will discuss about '''Conditional loops''' in '''AWK''' like- '''for, while''' and '''do-while loop'''. | ||
|- | |- | ||
|| 03:31 | || 03:31 | ||
− | || We will also learn '''search pattern''' using '''AWK''' | + | || We will also learn '''search pattern''' using '''AWK''', |
|- | |- | ||
|| 03:35 | || 03:35 | ||
− | || | + | || process data from a single or multiple files. |
|- | |- | ||
Line 172: | Line 177: | ||
|- | |- | ||
|| 03:53 | || 03:53 | ||
− | || | + | || '''Basics of Single Dimensional Array''' tutorial explains: |
− | + | assigning '''array element'''s, | |
|- | |- | ||
|| 03:59 | || 03:59 | ||
− | || | + | || refer the '''element'''s of an '''array''', |
− | + | indexing '''AWK arrays, ''' | |
|- | |- | ||
|| 04:04 | || 04:04 | ||
− | || | + | || advantage of '''associative array''', |
|- | |- | ||
|| 04:07 | || 04:07 | ||
− | || | + | || checking whether any '''element '''exists in an '''array '''at a certain '''index'''. |
|- | |- | ||
Line 200: | Line 205: | ||
|- | |- | ||
|| 04:30 | || 04:30 | ||
− | || This advanced level tutorial on '''Single dimensional array''' explains | + | || This advanced level tutorial on '''Single dimensional array''' explains- |
− | + | using '''AWK array '''with file, | |
− | + | scan the '''elements '''of an '''array ''', | |
|- | |- | ||
|| 04:41 | || 04:41 | ||
− | || | + | || new variation of '''"for" loop''', |
− | + | delete an '''array element''', | |
|- | |- | ||
|| 04:47 | || 04:47 | ||
− | || | + | || delete the whole '''array''', |
|- | |- | ||
|| 04:50 | || 04:50 | ||
− | || | + | || values of '''ARGC '''and '''ARGV'''. |
|- | |- | ||
Line 230: | Line 235: | ||
|- | |- | ||
|| 05:08 | || 05:08 | ||
− | || '''Multi Dimensional Array''' in '''AWK''' explains | + | || '''Multi Dimensional Array''' in '''AWK''' explains - |
|- | |- | ||
|| 05:12 | || 05:12 | ||
− | || Identifying an '''element''' by a sequence of multiple indices | + | || Identifying an '''element''' by a sequence of multiple indices, |
|- | |- | ||
|| 05:17 | || 05:17 | ||
− | || Concatenated into a single '''string''' | + | || Concatenated into a single '''string''', |
|- | |- | ||
|| 05:20 | || 05:20 | ||
− | || Create | + | || Create '''2 by 2 multidimensional array''' in '''AWK''', |
|- | |- | ||
|| 05:24 | || 05:24 | ||
− | || Create the '''transpose''' of a | + | || Create the '''transpose''' of a '''2 by 2 matrix''', |
|- | |- | ||
|| 05:28 | || 05:28 | ||
− | || | + | || scan the '''multidimensional array ''', |
|- | |- | ||
|| 05:31 | || 05:31 | ||
− | || | + | || combine the '''for loop''' with the '''split function'''. |
|- | |- | ||
Line 266: | Line 271: | ||
|- | |- | ||
|| 05:48 | || 05:48 | ||
− | || '''Built-in Functions''' | + | || '''Built-in Functions'''- |
− | In this we will learn about '''AWK built-in functions''' like: | + | In this, we will learn about '''AWK built-in functions''' like: |
− | '''Arithmetic functions''' | + | '''Arithmetic functions''', |
|- | |- | ||
|| 05:57 | || 05:57 | ||
− | || '''Random functions''' | + | || '''Random functions''', |
− | '''String functions''' | + | '''String functions''', |
|- | |- | ||
|| 06:01 | || 06:01 | ||
− | || '''Input and Output functions''' and '''Timestamp functions''' | + | || '''Input and Output functions''' and '''Timestamp functions'''. |
|- | |- | ||
Line 292: | Line 297: | ||
|- | |- | ||
|| 06:23 | || 06:23 | ||
− | || In '''User defined functions''' tutorial, we will learn | + | || In '''User defined functions''' tutorial, we will learn - |
− | How to create our own '''function''' | + | How to create our own '''function''', |
|- | |- | ||
|| 06:30 | || 06:30 | ||
− | || '''Function call''' | + | || '''Function call''', |
− | '''Return statement''' and '''Reverse function''' | + | '''Return statement''' and '''Reverse function'''. |
|- | |- | ||
Line 312: | Line 317: | ||
|- | |- | ||
|| 06:54 | || 06:54 | ||
− | || With this we come to the end of this tutorial. | + | || With this, we come to the end of this tutorial. |
− | Let us summarise | + | Let us summarise. |
|- | |- | ||
Line 322: | Line 327: | ||
|- | |- | ||
|| 07:08 | || 07:08 | ||
− | || The video at the following link summarises the Spoken Tutorial project. | + | || The video at the following link summarises the '''Spoken Tutorial''' project. |
Please download and watch it. | Please download and watch it. | ||
Line 364: | Line 369: | ||
|- | |- | ||
|| 08:01 | || 08:01 | ||
− | || Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India. | + | || Spoken Tutorial Project is funded by '''NMEICT, MHRD''', Government of India. |
More information on this mission is available at this link. | More information on this mission is available at this link. | ||
Line 370: | Line 375: | ||
|- | |- | ||
|| 08:12 | || 08:12 | ||
− | || This is Praveen from IIT Bombay signing off. Thank you for joining. | + | || This is Praveen from '''IIT Bombay''', signing off. Thank you for joining. |
|- | |- | ||
|} | |} |
Revision as of 14:43, 9 July 2019
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-
variables, operators, |
00:41 | conditional Statements,
Loops, |
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,
Operators, |
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,
ORS, OFS, NR, NF, ARGV, ARGC. |
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. |