Linux-AWK/C2/Overview-of-Linux-AWK/English

From Script | Spoken-Tutorial
Jump to: navigation, search

Title of script: AWK Overview

Author: Praveen S

Keywords: Linux, awk commands, Spoken Tutorial, Video Tutorial.


Visual Cue Narration
Slide 1: Introduction Hello and welcome to the spoken tutorial on Overview of Linux AWK commands.
Slide 2: Learning Objectives In this tutorial we will learn about
  • Linux AWK and
  • The tutorials covered in the Linux AWK series
Slide 3: System requirement To record this tutorial, I am using Ubuntu Linux 16.04 OS
Slide 3: AWK
  • AWK is a used for searching and extracting data from a file.
  • We can also manipulate the data and generate reports using AWK.
Slide 4: AWK Like any programming language, AWK also has
  • Variables
  • Operators
  • Conditional Statements
  • Loops
  • Single and Multi Dimensional Arrays
  • Built-in Functions and
  • User Defined functions
Slide 5: AWK Process During the search process-
  • A file will be treated as a sequence of records.
  • Each line will be considered as a single record with multiple fields.
  • Then AWK searches for the given pattern.
  • And performs the desired action.
Slide 6: AWK Spoken Tutorials Now, we will briefly go through some of the individual AWK tutorials in this series.
Tutorial: Basics of awk Basics of awk

This tutorial explains some basic operations in AWK like

  • How to print the processed output and
  • Using regular expressions
Glimpse of tutorial Let’s have a look at this tutorial.
Tutorial: Variables and Operators Variables and Operators

Here we will learn how to use -

  • User defined variables
  • Variable initialisation
  • Operators
  • String Concatenation & matching operator
  • BEGIN and END statement in AWK
Glimpse of tutorial Let’s have a look at this tutorial.
Tutorial: Built-In variables Built-In variables

This tutorial explains about the following built-in variables in AWK like:

  • RS, FS
  • ORS, OFS
  • NR, NF
  • ARGV, ARGC

The tutorial also teaches how to write an AWK script.

Glimpse of tutorial Here is a glimpse of this tutorial.
Tutorial: Conditional statements Conditional statements

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

  • If
  • else
  • else if in awk
Glimpse of tutorial Let’s have a look at this tutorial.
Tutorial: Loops Loops-

Here we will discuss about

  • Conditional loops in AWK like for, while and do-while loop
  • We also learn search pattern using AWK
  • Process data from a single or multiple files
Glimpse of tutorial Let’s take a look at this tutorial.
Tutorial: Basics of Single Dimensional Array Basics of Single Dimensional Array tutorial explains
  • Assigning array elements
  • Refer the elements of an array
  • Indexing AWK arrays
  • Advantage of associative array
  • Checking whether any element exists in an array at a certain index
Glimpse of tutorial Here is a glimpse of this tutorial.
Tutorial: More on Single Dimensional Array This advanced level tutorial on Single dimensional array explains
  • Using AWK array with file
  • Scan the elements of an array
  • New variation of "for loop"
  • Delete an array element
  • Delete the whole array
  • Values of ARGC and ARGV
Glimpse of tutorial Let’s have a look at this tutorial.
Tutorial: Multi Dimensional Array Multi Dimensional Array in AWK explains
  • Identifying an element by a sequence of multiple indices
  • Concatenated into a single string
  • Create 2 by 2 multidimensional array in AWK
  • Create the transpose of a 2 by 2 matrix
  • Scan the multidimensional array
  • Combine the for loop with the split function
Glimpse of tutorial Let’s take a look at this tutorial.
Tutorial: Built-in Functions Built-in Functions.

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

  • Arithmetic functions
  • Random functions
  • String functions
  • Input and Output functions and
  • Timestamp functions
Glimpse of tutorial Here is a glimpse of this tutorial.
Tutorial: User defined functions In User defined functions tutorial, we will learn
  • How to create our own function
  • Function call
  • Return statement and
  • Reverse function
Glimpse of tutorial Here is a glimpse of this tutorial.
With this we come to the end of this tutorial.

Let us summarise

Slide 9: Summary In this tutorial, we learnt about AWK

and went through the tutorials in this series.

Slide 10: About Spoken Tutorial project The video at the following link summarises the Spoken Tutorial project.

Please download and watch it.

Slide 11: Spoken Tutorial workshops The Spoken Tutorial Project team conducts workshops and gives certificates.

For more details, please write to us.

Slide 12: Forum for specific questions: Do you have questions in THIS Spoken Tutorial?

Please visit this site.

Choose the minute and second where you have the question.

Explain your question briefly.

Someone from our team will answer them.

Slide 13: Forum for specific questions: The Spoken Tutorial forum is for specific questions on this tutorial.

Please do not post unrelated and general questions on them.

This will help reduce the clutter.

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

Slide 14: Acknowledgement Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.

More information on this mission is available at this link.

Slide 15: Thank You This is Praveen from IIT Bombay signing off.

Thank you for joining.

Contributors and Content Editors

Pravin1389