Formations elearning et formation en ligne
feed

UNIX Shell Programming

OBJECTIF PÉDAGOGIQUE

Create and run shell scripts. Redirect standard input, standard output and standard error. Quote metacharacters when they are to be included in arguments. Use filename generation metacharacters. Use shell variables and the export command. Write scripts that accept command line arguments. Use the read command to obtain input for a script. Use command substitution. Retrieve the exit status of the previous command. Test properties of files and strings by using the test commant. Use the case command and the various forms of the if command. Use for loops, while loops, and until loops. Use the set command to display the values of all sell variables. Use the set command to set shell options such as -x and -v. Use the set command to change the values of the positional parameters. Use the exit command to cause a script to terminate with a particular exit status

CONTENU DU PROGRAMME

Unit 1: Creating a Simple Shell Script
  • Introduction
  • The Shell as a Programming Language
  • Creating Shell Scripts
  • Some Basics
  • Input and Output Redirection
  • Scripts vs Compiled Programs
  • Shell Script Examples
  • More about Running Scripts

Unit 2: Filename Generation & Quoting

  • Introduction
  • Metacharacters
  • Filename Generation Characters
  • Filename Generation
  • Quoting
  • The Comment Character

Unit 3: Using Shell Variables in Scripts

  • Introduction
  • Creating and Referencing Variables
  • Executing Files
  • An Example Process Hierarchy
  • visibility of Shell Variables
  • The Environment of a Process

Unit 4: Input for Shell Scripts

  • Introduction
  • Command Substitution
  • Interactive Input for Shell Scripts
  • Command Line Input
  • Catching Signals
  • Partial Quoting
  • Overview of Shell Interpretations

Unit 5: Using Conditional Constructs

  • Introduction
  • Flow Control Constructs
  • The case Construct
  • Return Values
  • The exit Command
  • Using the if and test Commands
  • Moving Command Arguments
  • Conditional Operators

Unit 6: Using Looping Constructs

  • Introduction
  • Overview of Looping Constructs
  • Looping Over a List
  • Skipping Items
  • Generating Word Lists
  • Waiting for Something to Happen
  • Looping While a Condition Holds
  • More about break and continue
  • Redirection
Elearning, formation en ligne, formation à distance, plateforme LMS, decouvrez le catalogue formation Informatique en ligne et la formation UNIX Shell Programming proposé par Connaissance network