3
Korn Shell and Bash Shell Programming Duration: 3 days | Price: $1595 Description: This hands on Korn and Bash Shell scripting course provides a comprehensive introduction to writing Korn and Bash shell scripts. Besides covering fundamental syntax for program flow control, variable assignment and substitution, I/O control, and mathematical expressions, it emphasizes the powerful features of these shells, including built-in string operators, variable typesetting/conversion, functions, and coprocess communication and control. The creative use of standard UNIX and Linux utilities within scripts to solve problems is stressed throughout. The course is designed for the administrators and programmers who are developing, testing, or integrating software on UNIX or Linux, as well as for advanced UNIX or Linux users. Both the commonalities and differences between the Korn and Bash shells are examined, and students will have the opportunity to learn from examples coded in both shells. Comprehensive hands on exercises are integrated throughout to reinforce learning and develop real competency. Prerequisites: Familiarity with UNIX file system and commands. Students who are not familiar with UNIX file system and commands should register for the course UNIX/Linux Fundamentals. Overview of Topics Covered: Introduction Comparing Popular Shells Korn Shell Compatibility for Bash Korn and Bash Shell Advantages Korn and Bash Shell Disadvantages Versions of ksh and bash Shell Command Syntax Comments Continuing a Command on Multiple Lines Special Characters Pattern Matching Complex Pattern Combinations Tilde Expansion Process Management Process Priority Background Jobs Signals Traps DEBUG and EXIT ksh Co-Processing bash Co-Processing Pausing Time and Date Scheduling Execution Run Commands Later Aliases How the Shell Finds Commands Command History and Editing Writing Scripts Shell Programming Language Reserved Words How to Write and Run Scripts Debugging Data Types Using Variables The typeset Command Advanced Customization of the Shell Environment Command Line Options The set command Parents and Children Inheritance Exporting Dot Scripts 978-250-4983 www.open-source-training-courses.com

Korn Shell Programming Course | Bash Shell Training ... fileKorn Shell and Bash Shell Programming Duration: 3 days | Price: $1595 Description: This hands on Korn and Bash Shell scripting

Embed Size (px)

Citation preview

Korn Shell and Bash Shell ProgrammingDuration: 3 days | Price: $1595

Description: This hands on Korn and Bash Shell scripting course provides a comprehensive introduction to writingKorn and Bash shell scripts. Besides covering fundamental syntax for program flow control, variable assignment andsubstitution, I/O control, and mathematical expressions, it emphasizes the powerful features of these shells, includingbuilt-in string operators, variable typesetting/conversion, functions, and coprocess communication and control. Thecreative use of standard UNIX and Linux utilities within scripts to solve problems is stressed throughout. The course isdesigned for the administrators and programmers who are developing, testing, or integrating software on UNIX orLinux, as well as for advanced UNIX or Linux users. Both the commonalities and differences between the Korn andBash shells are examined, and students will have the opportunity to learn from examples coded in both shells.Comprehensive hands on exercises are integrated throughout to reinforce learning and develop real competency.

Prerequisites: Familiarity with UNIX file system and commands. Students who are not familiar with UNIX file systemand commands should register for the course UNIX/Linux Fundamentals.

Overview of Topics Covered:

Introduction

Comparing Popular ShellsKorn Shell Compatibility for BashKorn and Bash Shell AdvantagesKorn and Bash Shell DisadvantagesVersions of ksh and bashShell Command SyntaxCommentsContinuing a Command on Multiple LinesSpecial CharactersPattern MatchingComplex Pattern CombinationsTilde Expansion

Process Management

Process PriorityBackground JobsSignalsTrapsDEBUG and EXITksh Co-Processingbash Co-ProcessingPausingTime and DateScheduling ExecutionRun Commands LaterAliasesHow the Shell Finds CommandsCommand History and Editing

Writing Scripts

Shell Programming LanguageReserved WordsHow to Write and Run ScriptsDebuggingData TypesUsing VariablesThe typeset Command

Advanced Customization of the Shell Environment

Command Line OptionsThe set commandParents and ChildrenInheritanceExportingDot Scripts

978-250-4983

www.open-source-training-courses.com

ConstantsSpecial Predefined VariablesPrinting to the Screen (echo, print)The printf CommandAccepting Input with kshAccepting Input with bashArithmetic OperatorsFloating-Point NumbersBitwise OperatorsGrouping OperationsBinary, Octal, and HexadecimalIndexed ArraysQuotingCommand Substitution

Startup ScriptsEnvironment VariablesSetting Prompts in ksh and bash

Programming Logic

Conditional ExpressionsTesting StringsTesting OptionsNumeric ConditionsTesting Completion StatusTruth in Korn and Bash ShellsThe case StatementLoops: while and untilThe for LoopMenus and the select StatementRedirection and LoopsWhen to Use Different Constructs

Advanced I/O with Streams

Redirection ReviewOpening Additional StreamsRedirection OperatorsInheriting and Duplicating StreamsCaution with exechere Documents

String Manipulation

String ComparisonString RelationsConcatenationSubstring ManipulationsWildcards and Pattern Matching

Security

Process Ownershipsuid and sgidRestricted ShellsOther Security FeaturesThe newgrp CommandStatement blockscase Statement

Command Line Processing

Getting Data Into ScriptsManipulating Positional Parameters (set, sort,shift)Analyzing Switches with getoptsOptionsReserved Variables (OPTARG, OPTIND, IFS)Setting Default Values

Performance and Porting Issues

Improving the Performance of ScriptsTiming Commands and ScriptsSystem ResourcesSetting LimitsPortability Issues

Overview of File Manipulation Utilities Additional File Processing Commands

Editing a File from a ScriptScripting with ed or sedUNIX and Linux Utilities to Manipulate FilesRegular Expressionsgrep and egrepThe Stream Editor sedSorting in ScriptsGenerating Reports with awkSplitting Large FilesCounting Words, Lines, and CharactersTransforming File ContentsExtracting Text Strings

Examining and Comparing FilesReporting Differences Between FilesComparing Files of Any FormatDisplaying Data in Octal and HexCompressing DataConverting File Formats

Functions

Writing FunctionsReturning Value from FunctionsReturning String OutputLocal and Global VariablesDefining Functionsksh Autoload Functions

Compound Commands

PipelinesCommand ListsAnd and Or ListsBackground JobsCommand GroupingI/O Redirection

Open Source Training | 14 Fletcher Street, Suite 8 | Chelmsford, MA 01824