Unix Shell Scripting

Course Duration: 25 hrs

Course Objectives:
The objective of this course is to acquaint the participant with

  • UNIX Overview
  • Various concepts and commands in UNIX
  • Writing and debugging shell scripts
  • Writing awk programs
  • UNIX utilities

At the end of the course user must be able to build and debug shell scripts of medium complexity using UNIX commands, filters, functions, arrays and awk.

Course Description:
The course focuses on learning different UNIX commands, writing shell scripts and also incorporating awk commands into it.
The course starts by learning the basic UNIX commands related to files, text manipulation, process management and many other general purpose commands. It discusses UNIX environment, writing and debugging shell scripts and awk command syntax.

Course Duration:
6 full days including one day each, for practice and on line test  

Mode of conduction:

  1. Lecture
  2. Hands On

Course Prerequisites:
The course presumes basic knowledge of programming techniques & operating system concepts.


Day-wise Session Plan
Day 1:

  • Introduction to Unix & its flavors,  Unix Architecture, File System, Login/logout, user home directory, shell and its features, Command and their types, PATH Variable
  • Unix general commands - pwd, whoami, who, date, tty, which, type, file, echo, Concept of Files/Directories in Unix, Absolute/Relative paths, Inode, File related commands - ls, touch, cat, cp, mv, rm, diff,cmp,comp, mkdir, cd, rmdir, ln
  • Redirection & Pipes, File Permission & related commands – chmod
    umask, find command and its options, Filter Commands and their options, wc, more, head, tail, sort, cut, paste, uniq, tr, tee, Introduction to vi editor, vi Commands. 

Day 2:

  1. Regular expressions &  grep, egrep, fgrep
  2. Shell overview, Shell Types – Bourne, Bourne Again, Korn, C Shell
    Shell Metacharacters and Command Interpretation
    Revisiting Pipes and Redirection, Merging Streams, /dev/null &
    /dev/tty devices, Shell Variables – System and User Defined Variables, Exporting variables to Child Shell, Command Substitution, Positional Parameters using set, Command Aliases, .profile files, 
    Command History, Shell & Sub Shell, “.” Operator
  3. Writing a simple shell script to print “Hello World”, 
    Executing a shell Script, read, && and || Operators, expr, test, if…fi, case…esac, command Line Arguments, set, shift

Day 3:

  1. while, for, here Document, shell debugging, exec, Arrays, Functions
  2. Introduction to sed

Day 4:

  1. Introduction to awk program, awk filter syntax, Line vs Field, printf, operators, variables, getline, Using BEGIN and END, built in variables, Arrays, functions, Control flow- if, while, 
    Reading from one or many files in an awk script, awk examples
  2. chown, chgrp, gzip/gunzip, ftp, tar, make utility
    Database connectivity using MySQL, Process Concept, ps command
  3. background process, Process priority, Kill, Jobs, fg, bg, nohup, Job Scheduling, crontab

 

        
                                        Home  | About Us  | Placements  | Project  | Enquiry  | Clients  | Careers  | Contact Us  
                                                                All content Copyright  © GKTCS Innovations Pvt.ltd  
 
  Skip Navigation Links
 


 Courses