UNIX Shell Programming
 
 

UNIX Shell Programming

Course Code: SP

Duration: 2 days

Our training courses can also be delivered at a location of your choice...

S7

UNIX Shell Programming Course Overview

This Unix Shell Programming training course is designed to give delegates practical experience in developing and writing UNIX shell scripts Most of the built-in shell commands are introduced together with the main program control structures. This course is not suitable for C shell programmers.

The delegate will learn and acquire skills as follows:

  • Writing simple scripts to enhance basic command output
  • Using the various shell quoting mechanisms appropriately
  • Manipulating shell variables and user-defined variables in scripts
  • Implementing conditional execution facilities
  • Using the shell's built-in loop constructs where appropriate
  • Writing scripts to trap user interrupts
  • User defined Functions
  • Developing menu-driven shell scripts

Who will the Course Benefit?

Programmers, administrators and support personnel who need to understand existing shell scripts, automate procedures and write their own utilities.

The UNIX Shell Programming course assumes knowledge of the UNIX Operating System to the level covered in the Introduction to UNIX Course. Some programming experience may also prove advantageous.

Course Objectives

To provide the skills needed to develop and customise UNIX shell programs.

Requirements

The UNIX Shell Programming course assumes knowledge of the UNIX Operating System to the level covered in the UNIX Introduction course. Some programming experience may also prove advantageous.

Pre-Requisite Courses

Follow-On Courses

Notes:
  • Course technical content is subject to change without notice.
  • Course content is structured as sessions, this does not strictly map to course timings. Concepts, content and practicals often span sessions.


 

Course Contents

UNIX Shell Programming Training Course

Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: UNIX COMMAND REVIEW

  • Basic Unix commands
  • General commands
  • File and directory handling commands
  • Filename generation and regular expressions characters
  • I/O Redirection features
  • Other commands

Session 2: GETTING STARTED

  • What is a shell script?
  • Development guidelines
  • Creating and editing shell scripts
  • Naming and storing shell scripts
  • Executing shell scripts
  • Exercise: Write a simple shell script

Session 3: USING VARIABLES

  • Environment variables
  • Local variables
  • Assigning values to variables
  • Assessing variable values
  • Using quotes
  • Delimiting variable names
  • Echo control sequences
  • Exercise: Add variables to a script

Session 4: INTEGER ARITHMETIC

  • Using the expr command
  • Using the (( )) notation
  • Exercise: Add integer arithmetic to a shell script

Session 5: HANDLING RUN TIME DATA

  • The read command
  • Command line arguments
  • Exercise: Writing a generic shell script
  • Exercise: Writing an interactive shell script

Session 6: CONDITIONAL EXECUTION

  • The if statement
  • The test command
  • Exercise: Adding validation to previous scripts

Session 7: ADDITIONAL KORN, BASH & POSIX SYNTAX

  • Other test notations
  • Default and substitute variables
  • Exit status codes
  • Exercise

UNIX Shell Programming Training Course

Session 8: LOOP CONSTRUCTS

  • The while loop
  • The until loop
  • The for loop
  • The while true and until false loops
  • Loop control commands
  • Exercise: Enhancing the previously written scripts
  • Exercise: Writing a script to copy files using a 'for' loop
  • Exercise: Writing a script to generate numbers with the 'while' loop

Session 9: MULTI-BRANCH DECISIONS

  • The case statement
  • Menu driven applications
  • Exercise: Developing and writing a menu system

Session 10: FUNCTIONS

  • What is a function?
  • Syntax
  • Examples
  • Creating a Function Library
  • Exercise: Add a function to a script

Session 11: INTERRUPT HANDLING

  • Interrupt signals
  • Trapping interrupts
  • Exercise: Adding traps to the menu script

Session 12: ADDITIONAL FEATURES AND FACILITIES

  • The exec commands
  • The includes notation
  • More about loops
  • Arrays
  • Here Documents
  • Exercise: Create a here script
 

UNIX Shell Programming

Duration: 2 days

RRP: £850.00 exc. VAT 


Upcoming Scheduled Events
Next 6 months

Virtual StayAhead Virtual Courses available  & London Schedule
We are running a full Virtual schedule
Start Date   Spaces Book
10 Aug 2020
StayAhead Virtual Courses available  StayAhead Classroom Courses available 
Spaces StayAhead - Course Running Book
27 Aug 2020
StayAhead Virtual Courses available  StayAhead Classroom Courses available 
Spaces StayAhead - Course Running Book
07 Sep 2020
StayAhead Virtual Courses available  StayAhead Classroom Courses available 
Spaces StayAhead - Course Running Book
24 Sep 2020
StayAhead Virtual Courses available  StayAhead Classroom Courses available 
Spaces StayAhead - Course Running Book
22 Oct 2020
StayAhead Virtual Courses available  StayAhead Classroom Courses available 
Spaces StayAhead - Course Running Book
16 Nov 2020
StayAhead Virtual Courses available  StayAhead Classroom Courses available 
Spaces StayAhead - Course Running Book
19 Nov 2020
StayAhead Virtual Courses available  StayAhead Classroom Courses available 
Spaces StayAhead - Course Running Book
17 Dec 2020
StayAhead Virtual Courses available  StayAhead Classroom Courses available 
Spaces StayAhead - Course Running Book
21 Jan 2021
StayAhead Virtual Courses available  StayAhead Classroom Courses available 
Spaces StayAhead - Course Running Book
Manchester
This centre has closed until further notice
View our Virtual dates StayAhead Virtual Courses available listed above
Start Date   Spaces Book
15 Oct 2020       StayAhead Classroom Courses available  Spaces StayAhead - Course Running Book
Birmingham
This centre has closed until further notice
View our Virtual dates StayAhead Virtual Courses available listed above
Start Date   Spaces Book
15 Oct 2020       StayAhead Classroom Courses available  Spaces StayAhead - Course Running Book
17 Dec 2020       StayAhead Classroom Courses available  Spaces StayAhead - Course Running Book
Bristol
This centre has closed until further notice
View our Virtual dates StayAhead Virtual Courses available listed above
Start Date   Spaces Book
19 Nov 2020       StayAhead Classroom Courses available  Spaces StayAhead - Course Running Book
Leeds
This centre has closed until further notice
View our Virtual dates StayAhead Virtual Courses available listed above
Start Date   Spaces Book
26 Nov 2020       StayAhead Classroom Courses available  Spaces StayAhead - Course Running Book
Edinburgh
This centre has closed until further notice
View our Virtual dates StayAhead Virtual Courses available listed above
Start Date   Spaces Book
22 Oct 2020       StayAhead Classroom Courses available  Spaces StayAhead - Course Running Book
17 Dec 2020       StayAhead Classroom Courses available  Spaces StayAhead - Course Running Book
    Show 12 months of Dates    

Virtual Events StayAhead Virtual Courses available Attend your training using our Live Virtual Classroom solution.

Classroom Events StayAhead Classroom Courses available You can attend in our traditional classroom setting using one of our Training Centres.
In the current climate, attendance at a Training Centre will be reviewed at the time of the request.

Closed Courses Closed Classroom Courses available These Closed Company events can be offered in your own setting or using our Live Virtual Classroom solution.
Delegates can attend from your business location, their home or a location of their choice. A great way to provide training to a group of delegates in a Team environment, even when they are in diverse locations, nationally or even internationally.
 

Course Reviews

Excellent course, just at the right level for what I needed. Will go away with plenty to practise and further my own knowledge. Thanks very much

Sarah - Training Manager


Great instructor. He is extremely knowledgeable in the subject course. He is very friendly and fosters a positive and rewarding learning environment in the classroom. I would definitely recommend this course.

Kenneth - Software Engineer - Defence


Helped me gain a much better understanding of content within scripts that I run every day and provided me with confidence in being able to go back to my work and make changes / enhancements.

Neil - Lead Analyst Programmer - Utilities


More Course Reviews....

Over all course is nice and helps me in my job role. Instructor is friendly and helped me in understanding the concepts well. Thank you.

Veera - Technical Analyst - IT


The course was well presented in an excellent manner. Plenty of examples made it easier to understand.

Will - IT Operations Analyst - Finance


Great trainer, perfect course material.

Paul - Communications


 
 
 
        Home             Let Us Call You
 

 

Course Deliveries

Public Scheduled and Closed
Virtual
UK and Overseas

OUG

Oracle User Group - Membership Benefits

OUG

Certification

Our independent Oracle, Solaris & Red Hat Linux curriculums helps prepare delegates for official certification.

StayAhead
Flexibility

Cannot see a sutiable date?
Please call us and we will try an accommodateyour needs!

StayAhead Live Virtual Classroom

 
Join live instructor-led classroom training from the comfort of your home or office.
All the convenience and benefits of the classroom experience without the hassle and costs of travel and accommodation.
 
 



Our Course Curriculum

 
 
 
 
 

AWS, Azure, VMWare, Cisco & Cyber Security

 
 



Our Ratings

Instructor
Quality
 

97.18%

Course
Practical
 

92.28%

Overall
Courseware
 

94.17%

Overall
Course
 

96.13%

+44 (0)20 7600 6116
Enquiries@StayAhead.com
Copyright © 2020 StayAhead Training Ltd
Cookies   /   Privacy Policy