Curso Linux Bash Shell Programming

  • Linux & Suse

Curso Linux Bash Shell Programming

32 horas
Visão Geral

O curso Linux Bash Shell Programming foi desenvolvido para oferecer aos participantes experiência prática no desenvolvimento e gravação de scripts Bash Shell. A maioria dos comandos shell integrados são introduzidos junto com as principais estruturas de controle do programa. O curso também oferece experiência prática no uso de uma variedade de ferramentas Linux para manipular texto e incorporar scripts shell Bash do Linux.

Exercícios e exemplos são usados ​​ao longo do curso para proporcionar experiência prática com as técnicas abordadas.

Objetivo

Fornecer as habilidades necessárias para desenvolver e personalizar programas shell e fazer uso eficaz de uma ampla gama de ferramentas padrão de programação e desenvolvimento do Linux.

Publico Alvo

Programadores, desenvolvedores e administradores de sistema que precisam construir scripts de shell e processar arquivos de texto usando recursos avançados de manipulação de texto.

O curso Linux Bash Shell Programming pressupõe conhecimento do sistema operacional Linux até o nível abordado no curso de introdução ao Linux. Alguma experiência em programação também pode ser vantajosa.

Materiais
Inglês/Português/Lab Prático
Conteúdo Programatico

COURSE INTRODUCTION

  1. Administration and Course Materials
  2. Course Structure and Agenda
  3. Delegate and Trainer Introductions

UNIX COMMAND REVIEW

  1. Basic Unix commands
  2. General commands
  3. File and directory handling commands
  4. Filename generation characters
  5. I/O Redirection features
  6. Other commands

GETTING STARTED

  1. What is a shell script?
  2. Development guidelines
  3. Creating and editing shell scripts
  4. Naming and storing shell scripts
  5. Executing shell scripts
  6. Exercise: Write a simple shell script

USING VARIABLES

  1. Environment variables
  2. Local variables
  3. Assigning values to variables
  4. Assessing variable values
  5. Using quotes
  6. Delimiting variable names
  7. Echo control sequences
  8. Exercise: Add variables to a script

INTEGER ARITHMETIC

  1. Using the expr command
  2. Using the (( )) notation
  3. Exercises: Add integer arithmetic to a shell script

HANDLING RUN TIME DATA

  1. The read command
  2. Command line arguments
  3. Exercise: Writing a generic shell script
  4. Exercise: Writing an interactive shell script

CONDITIONAL EXECUTION

  1. The if statement
  2. The test command
  3. Exercise: Adding validation to previous scripts

ADDITIONAL KORN,BASH & POSIX SYNTAX

  1. Other test notations
  2. Default and substitute variables
  3. Exit status codes
  4. Exercise

LOOP CONSTRUCTS

  1. The while loop
  2. The until loop
  3. The for loop
  4. The while true and until false loops
  5. Loop control commands
  6. Exercise: Enhancing the previously written scripts
  7. Exercise: Writing a script to copy files using a 'for' loop
  8. Exercise: Writing a script to generate numbers with the 'while' loop

MULTI-BRANCH DECISIONS

  1. The case statement
  2. Menu driven applications
  3. Exercise: Developing and writing a menu system

FUNCTIONS

  1. What is a function?
  2. Syntax
  3. Examples
  4. Creating a Function Library
  5. Exercise: Add a function to a script

INTERRUPT HANDLING

  1. Interrupt signals
  2. Trapping interrupts
  3. Exercise: Adding traps to the menu script

ADDITIONAL FEATURES AND FACILITIES

  1. The exec commands
  2. The includes notation
  3. More about loops
  4. Arrays
  5. Here Documents
  6. Exercise: Create a here script

BACKUP AND RESTORE UTILITIES

  1. Backing-up and restoring files
  2. Basic and advanced use of tar
  3. Compression utilities gzip,bzip2,zip and compress
  4. Exercise: Backing up and restoring files using tar
  5. Exercises: Compressing files

BACKGROUND JOB SCHEDULING

  1. Scheduling jobs with the cron command
  2. Scheduling jobs with the at command
  3. Exercises: Running background jobs

COMMANDS FOR COMPARING FILES

  1. Compare files with the cmp command
  2. Compare and format files with pr
  3. Compare files with the comm command
  4. Compare files with the diff and sdiff commands
  5. Compare large files with the bdiff command
  6. Exercises: Identifying file differences

SPLITTING FILES

  1. The fold command
  2. Split files using context and content rules
  3. Exercises: Splitting files

IDENTIFYING AND TRANSLATING CHARACTERS

  1. od - octal dump
  2. Use cat to display non-printing characters
  3. View and format files with nl
  4. The expand and unexpand commands to convert between tab and space characters
  5. The tr command for character translation
  6. Exercises: Translating characters with tr

REGULAR EXPRESSION NOTATION REVIEW

  1. Standard regular expressions
  2. Searching with grep
  3. Metacharacters,positional characters and quantifiers
  4. Extended regular expressions
  5. POSIX character classes
  6. PERL expressions

THE STREAM EDITOR SED

  1. sed command line syntax
  2. sed script files
  3. sed command processing
  4. sed addresses and simple instructions
  5. sed pattern space and hold space
  6. Grouping sed commands
  7. Hold and get functions
  8. Advanced flow control
  9. Write output to temporary files
  10. Exercises: Text processing with sed

FUNDAMENTALS OF AWK

  1. Basic AWK usage
  2. AWK program-files
  3. AWK scripts
  4. AWK variables
  5. Pattern matching with AWK
  6. AWK extended patterns

AWK OPERATORS

  1. AWK operators
  2. AWK arithmetic operations
  3. AWK output
  4. Formatting output with printf
  5. Exercises: Create awk scripts to extract selected data from a file and generate reports

AWK PROGRAM CONTROL STRUCTURES

  1. The BEGIN and END functions
  2. The AWK if construct
  3. The AWK else if construct
  4. The AWK while construct
  5. Other program control statements
  6. The AWK break,continue and exit statements
  7. User defined functions
  8. Exercises: Create AWK scripts and program-files utilising program control structures

AWK FUNCTIONS

  1. AWK string functions
  2. AWK length,tolower,toupper,index,sub,gsub,match,substr,split,sprintf,system and getline functions
  3. Exercises: Generate AWK scripts and program-files to extract and format data using AWK functions

 AWK ARRAYS

  1. AWK associative arrays
  2. Multi-dimensional arrays
  3. Exercises: Create AWK associative arrays to process text files and generate reports

MISCELLANEOUS TOOLS

  1. bc (calculator)
  2. fuser (testing for files in use)
  3. getops (checking options passed to shell scripts)
  4. printf (formatting screen output)
  5. logger (script logging)
  6. xargs (generating arguments for a command)
  7. eval (re-evaluating variables)
  8. Exercises: Using tools within a shell script
TENHO INTERESSE

Cursos Relacionados

Curso Linux Suse SLE200 Transitioning Enterprise 15

8 Horas

Curso Enterprise Server Deployment SLE211v15

16 horas

Curso SUSE Enterprise Server 15 Administration SLE201v15

32 Horas

Curso Linux Suse Enterprise Server 15 Adm Advanced SLE301v15

32 horas

Curso Linux Suse SLES for SAP Applications HA Deployment and Configuration

24 Horas

Curso Suse Linux Protegendo Enterprise Server 12 SLE341

24 Horas

Curso Red Hat System Administration I RH124

32 Horas