Learning Tree International

Tel: 08-506 668 00
 

Önskar du mer information?

Förnamn*:

Efternamn*:

Funktion:

Internadress:

Företag*:

Adress*:

Ort*:

Postnummer*:

Land* :
   Landskoder

Telefonnummer*:

E-post*:

* = Obligatoriskt

Informationen du lämnar kommer att användas för att kommunicera med dig om Learning Tree-produkter som kan vara av intresse för dig. Sekretessregler

När vi tagit emot ditt formulär tar vi kontakt med dig via e-post eller telefon.

Tidsbegränsat erbjudande  – Spara upp till 40 % per kurs
 

Shell Programming: Hands-On

Shell Scripting Using Bash and KornShell


Kurs: 4343 dagar

 Tipsa kollega   Skriv ut   Frågor och svar   Ladda ner PDF   Facebook   Twitter    View in English

Boka direkt

Denna kurs är schemalagd i England och USA, du kan välja mellan att resa dit eller delta live, online via AnyWare. Kursen går även att hålla företagsinternt på plats hos er. Ring 08-506 668 00 eller skicka oss en förfrågan genom att klicka här.

You Will Learn How To

  • Write Bash and KornShell scripts for improved productivity
  • Integrate all key language features: arrays, functions, pattern matching, I/O, branches, loops and variables
  • Improve speed by performing multifile handling and string manipulations without external tools
  • Launch and control additional processes
  • Wrap external file and text-handling tools within scripts
  • Customise and extend the user environment login scripts

Course Benefits

KornShell (ksh) and Bash have evolved into full-featured programming languages with efficient built-in modern constructs for superior string handling, decision making, arithmetic and postprocessing. This hands-on course provides the skills you need to write reusable, robust shell scripts to extend the user environment and automate complex administrative tasks.

Who Should Attend

Administrators, developers and other professionals using shell programming for improved productivity. Knowledge of UNIX or Linux at the level of Course 428, "UNIX Comprehensive Introduction", or Course 143, "Linux Comprehensive Introduction", is assumed.

Hands-On Training

Throughout this course, you write a series of Bash or KornShell scripts that build in complexity as you master each new construct. Instructor-led exercises include:
  • Creating loops and making decisions using case, while and if
  • Performing text-processing tasks using IFS and read
  • Breaking a large program into functions
  • Handling errors with default values
  • Handling unexpected events with trap
  • Manipulating multiple files

Course Content

Introduction and Overview

  • Role of shell scripting
  • Benefits of KornShell and Bash vs. other shells
  • Differences and similarities between bash, ksh88 and ksh93
  • Integrating scripts with external tools: grep, sed, awk and others
  • Customising the login environment

Bash and KornShell Scripting Fundamentals

Shell script elements

  • Commands and comments
  • Defining exit values

Conditional program execution

  • Applying if and case statements
  • Simplifying if logic with elif

Program loops and iteration

  • Conditional looping with while and until
  • Listing for loops

Testing files and directories

  • Analysing attributes
  • Checking file size and contents

Strings and patterns using [[ ]]

  • Comparing strings
  • Verifying the existence of a string
  • Pattern matching and special characters

Debugging

  • Redirecting standard error
  • set commands for debugging

Storing and Accessing Data

Positional parameters

  • Passing and accessing parameters
  • Setting and unsetting parameters
  • Manipulating parameters as groups

Shell variables

  • Defining environment and local variables
  • Specifying default values and error conditions

Arrays

  • Creating and indexing arrays
  • Processing array contents with special variables

Processing Data

Manipulating strings

  • Extracting substrings
  • Determining string length
  • Find and replace

Mathematics

  • Arithmetic for and while loops
  • Writing mathematical expressions: (( )), $(( )) and let

Modular Programming with Functions

Function basics

  • Functions vs. scripts
  • Parameters and variables

Creating a function library

  • Finding your library with PATH
  • Dot . and source commands

Interacting with the Outside World

Manipulating files and redirecting data

  • Scripting file and directory management
  • Deciphering redirection order
  • Unravelling the secrets of exec: opening and closing multiple files

Interacting with running processes

  • Handling errors
  • Defining post-termination actions such as notification, cleanup
  • Handling and sending signals: trap and kill

Accessing network servers

  • Connecting to a network server
  • Exchanging data with a network server

Creating "Production Quality" Scripts

Ensuring environmental control

  • Checking and modifying environment variables
  • Using getopts to process command line options

Handling user interactions

  • Setting up error processing
  • Employing select to create a menu interface
  • Processing keyboard input

<< Tillbaka till UNIX och Linux
 

Liknande kurser


Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of X/Open Company, Limited.
 
Shell Programming

Kursschema

Learning Tree AnyWare Du kan gå de överstrukna kurserna i klassrummet eller live, online via Learning Tree AnyWareTM.

Storbritannien

9 - 11 majLondon boka kurs

USA

11 - 13 aprilWashington boka kurs
9 - 11 majNew York boka kurs
23 - 25 majWashington boka kurs
1 - 3 augNew York boka kurs

När du ska gå en AnyWare-kurs bör du anmäla dig minst 10 dagar före kursstart.

Fler datum och platser.

Kurspriser

19 950 krOrd. Pris
kurspriser med
rabattprogram
14 300 krMed Treklöver
12 975 krMed Fyrklöver
17 350 krMed Företagskort -
10-kort
13 020 krMed ProPack 40
Alla priser i SEK, exkl moms.

Företagsintern &
anpassad utbildning

Denna och alla andra Learning Tree-kurser kan ges på plats hos er och/eller anpassas för er organisation.

Shell Programming: Hands-On

Participants writing shell programs on UNIX and Linux.


Kursdeltagarnas genomsnittsbedömning

De senaste 12 månadernas bedömningar

5 stjärnor:
81 %
4 stjärnor:
16 %
3 stjärnor:
3 %
2 stjärnor:   0 %
1 stjärna:   0 %

 
"A Learning Tree Course can really expedite learning. Taking one of their courses proves that you've done your homework and have been taught properly".



 
Open Source Software: An Overview and Outlook