Szkolenia HPE

Cel szkolenia szkolenie zdalne - dlearning

kod: H4322S

This course provides UNIX® users and administrators hands-on skills development in POSIX shell programming. Syntax and constructs of the POSIX shell language are covered including use of variables, branches, loops, file I/O, functions, and traps. An introduction to regular expressions, awk, and sed are also discussed as each of these are commonly used in shell scripts. The 5-day course is 50 percent lecture and 50 percent hands-on labs using HPE servers.

At the conclusion of this course, you should be able to:

  • Read and maintain existing POSIX scripts
  • Create a POSIX program
  • Use looping and branching
  • Use arrays
  • Use regular expressions
  • Use subroutines
  • Use advanced data structures and functions
  • Understand and use traps and signals
  • Understand awk and sed


HP-UX and UNIX general users, system and network administrators, and software developers

Plan szkolenia Rozwiń listę

  1. Introduction to POSIX Shell Scripts
    • What is a shell script?
    • Script execution
    • The subprocess environment
    • Shell features
  2. Shell Scripting
    • Which shell?
    • Recommended script format
    • Planning to write a shell script
    • Portability issues
  3. Variables
    • Variables
    • Displaying and using variables
    • Concatenation and substrings
    • Other sources of data for variables
  4. User Input
    • Reading user input
    • Positional parameters
    • Creating positional parameters
    • Conditional substitution
    • External influences
  5. Designing Program Output
    • Variable attributes
    • Formatted data
    • Cursor positioning and terminal echo
  6. Shell Arithmetic
    • Creating integer-only variables
    • Base10 and others
    • Working with arithmetic operators and data
  7. Branches and Logic Testing
    • Logic testing
    • Conditional operators
    • Multiway decision branching and the case statement
  8. Shell Patterns
    • Basic expressions
    • More complex patterns
    • Pattern combinations
  9. Program Loops
    • The while loop
    • The until loop
    • The for loop
    • Breaking out of a loop
    • Continue and exit commands
    • The select loop
  10. The getopts Command
    • Processing arguments
    • The getopts and OPTARG variable
    • The OPTIND variable
  11. Array Variables
    • Substituting and counting
    • Using integer variables as element numbers
  12. Functions and Function Libraries
    • Displaying current shell functions
    • Declaring and using functions
    • Variable scope
    • Function libraries and recursion
  13. Managing Input and Output
    • File descriptors
    • Reading and writing using file descriptors
    • Redirecting, parameter lists, and here documents
    • Creating parameter lists from input lines
  14. Traps and Signals
    • Common signals
    • The trap and stty commands
  15. Regular Expressions
    • Regular expressions
    • Metacharacters
    • The grep command
  16. Introduction to awk
    • Record processing
    • Pattern matching and printing
    • Relational expressions
    • awk variables
  17. Variables, Strings, and Arithmetic Operations
    • awk user-defined variables
    • Environment variables
    • Arithmetic operations
    • String manipulation
    • Formatted output
    • Command line arguments
  18. awk Flow Control
    • Conditional if, while, and for loops
    • Arrays
    • getline, next, and exit
    • Processing arrays
    • Associative arrays
  19. Stream Editing with sed
    • Substituting text
    • Deleting and printing lines
    • Reading and writing files
    • Multiple sed editor functions
Pobierz konspekt szkolenia w formacie PDF

Dodatkowe informacje

Wymagania wstępne
  • Fundamental knowledge of programming and
  • UNIX Fundamentals (51434S) or
  • Equivalent experience
Poziom trudności
Czas trwania 5 dni

The participants will obtain certificates signed by HPE (course completion).


Authorized HPE Trainer.

Pozostałe szkolenia HPE | HPE UNIX

Szkolenia powiązane tematycznie


Formularz kontaktowy

Prosimy o wypełnienie poniższego formularza, jeśli chcą Państwo uzyskać więcej informacji o powyższym szkoleniu.

* pola oznaczone (*) są wymagane

Informacje o przetwarzaniu danych przez Compendium – Centrum Edukacyjne Spółka z o.o.


Najbliższe szkolenia HPE

Harmonogram szkoleń HPE