Opleiding: Linux Shell Scripting

In de cursus Linux Shell Scripting leren de deelnemers shell scripts te schrijven in een Linux omgeving.

Intro Shell Scripting

De cursus Linux Shell Scripting gaat van start met een uitleg over de basis principes van shell scripts. Shell script zijn typisch kleine programma's die uitgevoerd worden door een command line interpreter. Systeem beheerders maken vaak gebruik van shell scripts voor operaties zoals file manipulatie, programma executie and het printen van tekst.

Executing Commands

Aan de orde komt hoe shell scripts kunnen worden uitgevoerd met de exec en fork commands. Voorts wordt de syntax van shell scripts besproken. En ook de verschillen tussen de diverse shells zoals de Bourne, C, Korn en Bash shell passeren de revue.

Bash Environment

Speciale aandacht is er voor de Bash shell. Hierbij wordt ingegaan op de diverse profiles, het zetten van locale en globale variabelen en het exporteren van variabelen. En ook command substitution en shell expansion komen aan de orde.

Regular Expressions

Dan worden reguliere expressies, die bij uitstek geschikt zijn voor pattern matching, besproken. De syntax van reguliere expressies en de betekenis van de diverse speciale karakters wordt toegelicht.

sed en awk

Voorts wordt aandacht besteed aan de sed batch-editor en de awk report-generator. Met de sed batch-editor kan de creatie en aanpassing van een tekstbestand automatisch worden afgehandeld.

Control Flow

Vervolgens wordt in de cursus Linux Shell Scripting ingegaan op control flow met conditionals en loops en het lezen en schrijven van files. En tevens leren de deelnemers de input van users in scripts te verwerken met command line parameters, options en redirection.

Functies

Tenslotte staat het aanroepen en schrijven van functions, het doorgeven van parameters en het opvangen van return values op het programma.

Doelgroep Cursus Linux Shell Scripting

De cursus Linux Shell Scripting is bedoeld voor administrators, developers en testers die shell scripts in een Linux omgeving willen leren schrijven en begrijpen.

Voorkennis Cursus Linux Shell Scripting

Om aan deze cursus te kunnen deelnemen is algemene kennis van computers en operating systems vereist. Ervaring met programmeren is bevorderlijk voor een goede begripsvorming.

Uitvoering Training Linux Shell Scripting

De theorie wordt behandeld aan de hand van presentaties. De concepten worden toegelicht met demo's. De theorie wordt afgewisseld met oefeningen. De cursustijden zijn van 9.30 tot 16.30.

Certificering cursus Linux Shell Scripting

De deelnemers krijgen na het goed doorlopen van de cursus een officieel certificaat Linux Shell Scripting.

Modules

Module 1 : Shell Scripting Intro

  • What are shell scripts?
  • Types of shells
  • Bourne Shell
  • C Shell
  • Korn Shell
  • Bash shell
  • Invocations
  • Bash Startup Files
  • Interactive Shells
  • Conditionals and Arrays
  • Shell Arithmetic
  • Directory Stack

Module 2 : Executing Commands

  • Fork and Exec
  • Built-in Commands
  • Creating Script Files
  • Shell Syntax
  • Shell Functions
  • Shell Parameters
  • Shell Expansions
  • Redirections
  • Init Script
  • Writing Scripts
  • Executing Scripts
  • Debugging Scripts

Module 3 : Bash Environment

  • Shell Initialization Files
  • /etc/profile and /etc/bashrc
  • User Configuration Files
  • /.bash_profile, /.bash_login and /.bash_logout
  • Global Variables and Local Variables
  • Exporting Variables
  • Reserved Variables
  • Special Parameters
  • Shell Expansion
  • Command Substitution
  • Aliases
  • Bash Options

Module 4 : Regular Expressions

  • What is Grep?
  • Grep and Regular Expressions
  • Pattern Matching
  • Meta Characters
  • Repetition Operators
  • Line Anchors
  • Word Anchors
  • Single Character Match
  • Wildcards
  • Character Ranges
  • Range Expressions
  • Character Classes

Module 5 : sed and awk

  • What is sed?
  • sed Commands
  • Interactive Editing
  • Deleting Lines
  • Range of Lines
  • Non-Interactive Editing
  • Using sed in Scripts
  • What is awk?
  • Print Selected Fields
  • Formatting Fields
  • Special Patterns
  • awk Scripts and Variables

Module 6 : Conditionals

  • Selection Statements
  • if-then-else Statement
  • Checking Files
  • Checking shell Options
  • Testing exit Status
  • String Comparisons
  • Nesting if's
  • Boolean Operations
  • The test Command
  • Compound Condition Testing
  • case Command
  • Initscript with case

Module 7 : Interactive Scripts

  • Displaying Messages
  • echo Built-in
  • Escape Sequences
  • read Built-in
  • Prompt for User Input
  • File Descriptors
  • Redirection of Errors
  • File I/O
  • Closing File Descriptors
  • Here Documents

Module 8 : Repetitive Tasks

  • Iteration Statements
  • for Statement
  • while Statement
  • until Statement
  • Loop control
  • Output Redirection
  • Input Redirection
  • Break and Continue
  • select Built-in
  • shift Built-in

Module 9 : Functions

  • Function Syntax
  • Function Parameters
  • Positional Parameters
  • return Built-in
  • Variables in Functions
  • Array Variables and Functions
  • Functions on Command Line
  • Catching Signals
  • Signals with kill
  • Handling traps
Meer...
€1.299
ex. BTW
Aangeboden door
SpiralTrain
Onderwerp
Shell scripting
Printen
Linux
Niveau
Duur
2 dagen
Looptijd
12 dagen
Taal
nl
Type product
cursus
Lesvorm
Klassikaal
Aantal deelnemers
Max: 12
Tijdstip
Overdag
Keurmerken aanbieder
NRTO
UWV scholingsvoucher