Linux AWK

From Script | Spoken-Tutorial
Revision as of 17:21, 27 March 2018 by Nancyvarkey (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Linux AWK is a language for processing text files. AWK is typically used as a data extraction and reporting tool. It is a standard feature of most Unix-like operating systems. It consists of a set of actions to be taken against streams of textual data for purposes of extracting or transforming text, for eg: producing formatted reports. The language uses the string datatype, associative arrays, and regular expressions.

AWK was created at Bell Labs in the 1970s and its name is an acronym derived from the surnames of its authors—Alfred Aho, Peter Weinberger, and Brian Kernighan.


In this series, we would mainly concentrate on how to use the wide variety of AWK commands of Linux, to handle files, directories, processes etc. These tutorials are created using Ubuntu version 16.04 and above. Please see the associated text box of individual spoken tutorials on the website to decide the versions of Linux OS to which it is applicable.

The Spoken Tutorial Effort for Linux is being contributed by Antara De, Praveen S and Nancy Varkey.

Introduction to Linux - Novice

  1. Ubuntu desktop    
    • Ubuntu Desktop
    • Main Menu
    • System Tray
    • Trash Bin icon (RHS corner)
    • Desktop icon (LHS corner), pen-drive
  2. Synaptic package manager
    • Synaptic Package Manager
    • How to install packages
  3. Ubuntu software system
    • Ubuntu-Software-Center
    • Installing softwares through Ubuntu Software Center
  4. Basic Commands    
    • Commands with example
    • Command interpreter
    • Shell
    • Using man
    • Apropos
    • Whatis
    • Using --help option
  5. General Purpose Utilities in Linux    
    • echo
    • uname
    • who
    • passwd
    • date
    • cal
    • Brief overview on Files and directories
    • pwd
    • ls
    • cat
  6. File System    
    • File
    • Directory
    • File Inode
    • Types of Files
    • Home directory and Current directory
    • Change Directory(cd)
    • mkdir,rmdir
  7. Working with Regular Files    
    • cat
    • rm
    • cp
    • mv
    • cmp
    • wc
  8. File Attributes    
    • chown, chmod, chmod -R, displaying files with ls -l
    • chmod u+, chmod a-w, chmod g+w, chmod -r, chgrp
    • inode, hard link, symbolic link
  9. Redirection Pipes    
    • Input,output and error stream
    • Redirection : > and >>
    • Pipes : |
  10. Working with Linux Process    
    • Process
    • Shell process
    • Process spawning - parent and child process
    • Process attributes - pid, ppid
    • Init Process
    • User process & System process
    • ps with options
  11. The Linux Environment    
    • Environment variable vs Local variables
    • set command
    • env command
    • SHELL, HOME, PATH, LOGNAME, PS1, PS2
    • history
    •  ! and ~
    • alias
  12. Basics of System Administration    
    • Root login-su
    • User management - UID, GID, useradd, usermod, userdel
    • Discs – Du, df
  13. Simple filters    
    • Head
    • tail
    • sort
    • cut
    • paste

Introduction to Linux - Intermediate

  1. The grep command    
    • To see the content of a file
    • To list the entries of a particular stream
    • To ignore cases
    • Lines that do not match the pattern
    • To list the line numbers with the entries
    • To store the result in another file
    • To know the count
  2. More on grep command    
    • Search using grep
    • To match more than one pattern
    • To check a word that has different spelling
    • Character class
    • The use of *
    • To match any one character using dot
    • To match a pattern at the beginning of the file
    • To match a pattern at the end of the file
  3. The sed command    
    • sed
    • To print using sed
    • Line Addressing
    • Context Addressing
  4. More on sed command    
    • substitute
    • insert
    • delete
  5. Basics of awk    
    • Awk Preliminaries
    • Selection criteria
    • action
    • Formatted printing - printf
    • Fields and -F option
    • Regular expressions
    • NR - number of records
    • Variables
  6. Networking tools    
    • Ping
    • Telnet
    • ftp
    • ssh
    • scp & sftp
  7. Linux Process    
    • Fork
    • Exec
    • Wait
    • Nice
    • Kill with options
  8. More about Linux Process    
    • Cron, crontab

Contributors and Content Editors

Nancyvarkey, PoojaMoolya, Pravin1389