0345 4506120

Solaris Korn Shell Programming

Course Details

Name Solaris Korn Shell Programming
DescriptionThis Solaris Korn Shell Programming training course is designed to give delegates practical experience in developing and writing shell scripts.  Most of the built-in shell commands are introduced together with the main program control structures.  The course also gives practical experience using a range of Solaris tools to manipulate text and incorporate into Solaris shell scripts.Skills GainedThe delegates will practise:    * 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    * Backing up and restoring files    * Scheduling background jobs using cron and at    * Using file comparison utilities    * Using the head and tail utilities    * Using the cut and paste utilities    * Using split and csplit    * Identifying and translating characters    * Sorting files    * Using regular expressions    * Translating characters in a file    * Selecting text from files with the grep family of commands    * Editing text files with sed    * Creating programs with awk
URL
Location:
Virtual Classroom
Start Date:
Working Days:
Price:
£1799.00 +vat
Availability:
Exam:
Residential:
Course ID:
480179

Overview

This Solaris Korn Shell Programming training course is designed to give delegates practical experience in developing and writing shell scripts.  
Most of the built-in shell commands are introduced together with the main program control structures.  The course also gives practical experience using a range of Solaris tools to manipulate text and incorporate into Solaris shell scripts.

Who will the Course Benefit?
Programmers, developers and system administrators who need to construct shell scripts using advanced text handling facilities.

This 5-day Solaris Korn Shell Programming course combines the Solaris Shell Programming and Solaris Advanced Shell Programming Tools courses. If the dates allocated to this 5-day course are not suitable, then this course can also be booked by selecting dates from both the Solaris Shell Programming and the Solaris Advanced Shell Programming Tools courses. The Shell Programming course should be attended first and may start on either a Monday or a Thursday.

Learning Objectives

To provide the skills needed to develop and customise shell programs and to make effective use of a wide range of standard Solaris programming and development tools.

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
  • Backing up and restoring files with tar
  • Advanced tar commands
  • File compression
  • Scheduling background jobs with crontab and at
  • Comparing file contents
  • Splitting files based on content and context
  • Identifying and translating characters
  • Use og grep and regular expressions
  • Basic and advanced file editing with sed
  • Creating AWK program-files and scripts
  • Pattern matching with AWK
  • AWK variables, operators and arithmetic functions
  • AWK program control structures
  • AWK functions
  • AWK associative and multi-dimensional arraysli>
  • Various miscellaneous commands

Pre-Requisites

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

Pre-Requisite Courses

  • Solaris Introduction

Follow-On Courses

  • Solaris 10 System Administration - Part
  • Oracle SQL


Course Content

Course Contents - DAY 1

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 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
  • Exercises: 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 7: ADDITIONAL KORN, BASH & POSIX SYNTAX

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

Course Contents - DAY 2

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

Course Contents - DAY 3

Session 13: BACKUP AND RESTORE UTILITIES

  • Backing-up and restoring files
  • Basic and advanced use of tar
  • Compression utilities gzip, bzip2, zip and compress
  • Exercise: Backing up and restoring files using tar
  • Exercises: Compressing files

Session 14: BACKGROUND JOB SCHEDULING

  • Scheduling jobs with the cron command
  • Scheduling jobs with the at command
  • Exercises: Running background jobs

Session 15: COMMANDS FOR COMPARING FILES

  • Compare two files with the cmp command
  • Compare two files with the comm command
  • Compare two files with the diff and sdiff commands
  • Compare large files with the bdiff command
  • Exercises: Identifying file differences

Session 16: SPLITTING FILES

  • The split and csplit commands
  • Exercises: Splitting files

Course Contents - DAY 4

Session 17: IDENTIFYING AND TRANSLATING CHARACTERS

  • od - octal dump
  • Use cat to display non-printing characters
  • The expand and unexpand commands to convert between tab and space characters
  • The tr command for character translation
  • Exercises: Translating characters with tr

Session 18: REGULAR EXPRESSION NOTATION REVIEW

  • Standard regular expressions
  • Extended regular expressions

Session 19: THE STREAM EDITOR sed

  • sed command line syntax
  • sed script files
  • sed command processing
  • sed addresses and simple instructions
  • sed pattern space and hold space
  • Grouping sed commands
  • Hold and get functions
  • Advanced flow control
  • Exercises: Text processing with sed

Session 20: FUNDAMENTALS OF AWK

  • Basic AWK usage
  • AWK program-files
  • AWK scripts
  • AWK variables
  • Pattern matching with AWK
  • AWK extended patterns
  • AWK operators
  • AWK arithmetic operations
  • AWK output
  • Formatting output with printf
  • Exercises: Create awk scripts to extract selected data from a file and generate reports

Course Contents - DAY 5

Session 21: AWK PROGRAM CONTROL STRUCTURES

  • The BEGIN and END functions
  • The AWK if construct
  • The AWK else if construct
  • The AWK while construct
  • Other program control statements
  • The AWK break, continue and exit statements
  • User defined functions
  • Exercises: Create AWK scripts and program-files utilising program control structures

Session 22: AWK FUNCTIONS

  • AWK string functions
  • AWK length, tolower, toupper, index, sub, gsub, match, substr, split, sprintf, system and getline functions
  • Exercises: Generate AWK scripts and program-files to extract and format data using AWK functions

Session 23: AWK ARRAYS

  • AWK associative arrays
  • Multi-dimensional arrays
  • Exercises: Create AWK associative arrays to process text files and generate reports

Session 24: MISCELLANEOUS TOOLS

  • bc (calculator)
  • fuser (testing for files in use)
  • getops (checking options passed to shell scripts)
  • printf (formatting screen output)
  • logger (script logging)
  • xargs (generating arguments for a command)
  • eval (re-evaluating variables)
  • Exercises: Using tools within a shell script

Virtual Training

Description:

Quite simply, delegates based at home or in their office (or anywhere where there is an internet connection) link into a live instructor led class via their browser.

 

Using our Virtual Classroom Connect solution, the remote (virtual) delegate will connect to the training room via the internet, where they will be able to see, hear and interact with the instructor and, if it is a scheduled course, the classroom based delegates. They will be able to see all trainer demonstrations, slides and whiteboard work and also have access to the practical workshops/labs as though they were attending in the classroom.

 

Virtual delegates can interact during the sessions, joining in discussions with the trainer and, if relevant, the other delegates. If preferred, delegates can raise questions via the text-based virtual interface where the trainer can answer either in a private one to one conversation or to the class in general.

 

 

Headsets (please note that delegates must provide their own headsets for Virtual courses)

We strongly recommend that the delegates attending this training have high quality headsets, which have noise cancelling microphone capability. This is to enable them to clearly hear the course delivery and contribute effectively within the class setting, ensuring clear reciprocal communication between lecturer and delegates throughout the course.

 

Electronic Course Materials

Delegates will be accessing Electronic Course Material throughout the course. To achieve an optimum learning experience, we highly recommend that the delegates have access to a second screen in order to view their course materials separately from their main screen.

 

Optional Additional Service (Printed Course Materials)

In addition to providing electronic course materials, Printed Course Materials can also be provided at an extra cost per manual supplied. The fee charged includes the cost of couriering the printed course materials to the training venue. Please advise at the time of booking if this optional additional service is required.

 

  

VIRTUAL SOLUTION (REMOTE ACCESS SERVICE)

 

To support the practical workshops/labs element of the Virtual Solution, we provide a Remote Access service whereby the delegates connect to servers or individual systems hosted in our London office.  This eliminates the expense of couriering systems to clients’ sites and the uncertainty associated with using clients’ own systems.  Clients will still need to provide a system for the delegates, however these systems will only require one of the following (freely available) connection tools installed: ssh client (eg putty), VNC viewer (eg UltraVNC) or the Windows Remote Desktop client.

 

For the Remote Access solution, we recommend a fast internet connection and minimum of Windows 7 with 4Gb Ram.  Delegates can also connect using Apple MAC or Unix/Linux based client systems and similar connection software.  Depending on the course being delivered there may be further requirements (such as minimum screen resolution, supported browsers etc).  If there are further requirements, a member of our technical team will advise accordingly once we have a clearer understanding of the systems being provided by the client for the training.

 

The client is responsible for the provision, technical setup, installation, testing and connectivity of the training systems to our servers or individual systems in London prior to the training commencing. Performance will be dependent on a good internet connection from the client’s site. As with all internet access, because the internet is outside of our control we are unable to guarantee response times.

 

VIRTUAL CLASSROOM CONNECTION TEST (ADOBE CONNECT WEB SERVICE)

 

We are responsible for providing the Adobe Connect software and Remote Access to the labs/workshops for the course.  To guarantee the successful delivery of the course, each delegate will need to carry out the required pre-course connectivity tests to both the Adobe Connect server and the labs/workshops server well in advance of the course start date.

 

Before we can fully commit to this training being delivered using Remote Access, it would be necessary to test the connectivity between our servers or individual systems hosted in our London office and the delegate's training systems.  We also need to ensure that the delegates can connect onto the course that they will be attending via the Adobe Connect server.

 

To enable the delegates to carry out the required connectivity tests, our booking procedures will provide connection details for the training prior to the event start date. All connectivity tests will need to be carried out well in advance of the training delivery date.

 

Please note, these tests must be performed on the computer system the delegate will be using on their training course and from the same location where they will be sitting during their course attendance.

 

 

This is to ensure that the delegates have the correct levels of software required on their systems. In the instance where their system may not have the required software, they have the ability to download it onto their system (the delegate may need to discuss this with their technical support if they are attending their course within an office environment).

 

This also confirms if the Adobe Connect web service is able to work through any firewalls the delegates’ company may have in place. Details of any required software is provided as and when the test is run.

 

Note: The delegate's systems will also need a working sound card.

 

To run the Adobe Connect connectivity test from their designated system and location, the delegate should use the following link:

http://admin.adobeconnect.com/common/help/en/support/meeting_test.htm

 

Below is a link to a QuickStart guide that delegates attending courses using Adobe Connect may find useful:

http://seminars.adobe.acrobat.com/vqs-participants/

 

NOTES

 

  • The client will be responsible for all the setups for the delegate's systems including user logins, permissions, etc.

 

  • The client will need to carry out the required Remote Access and Adobe Connect connectivity tests as outlined above. These tests will need to take place well in advance of the training delivery date.

 

  • Training cannot be undertaken using the client’s systems without discussion taking place between our technical team and the client with regard to the systems being provided.

 

  • We strongly recommend that the delegates attending this training are provided with high quality headsets, which have noise cancelling microphone capability. This is to enable them to clearly hear the course delivery and contribute effectively within the class setting, ensuring clear reciprocal communication between lecturer and delegates throughout the course.

 

  • Delegates will be accessing Electronic Course Material throughout the course. To achieve an optimum learning experience, we highly recommend that the delegates have access to a second screen in order to view their course materials separately from their main screen.

 

  • If the client is unable to provide suitable systems for this training course, then pre-configured systems could be provided or the course could be delivered at one of our training centres. Please refer to your account manager for further details.

Our Customers Include