Visão Geral
O curso Linux Advanced Shell Programming Tools foi desenvolvido para dar aos participantes experiência prática no uso de uma variedade de ferramentas Linux para manipular texto e incorporá-lo em scripts de shell 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 o conhecimento e as habilidades para fazer uso eficaz de uma ampla gama de ferramentas padrão de programação e desenvolvimento Linux.
Pre-Requisitos
Programadores, desenvolvedores e administradores de sistemas que precisam construir scripts de shell e processar arquivos de texto usando recursos avançados de manipulação de texto.
O curso Linux Advanced Shell Programming Tools pressupõe conhecimento do Sistema Operacional Linux no nível coberto no curso Linux Introduction. Alguma experiência em programação shell no nível coberto em Linux Shell Programming também é necessária.
Materiais
Inglês + Exercícios + Lab Pratico
Conteúdo Programatico
Course Introduction
- Administration and Course Materials
- Course Structure and Agenda
- Delegate and Trainer Introductions
BACKUP AND RESTORE UTILITIES
- Backing-up and restoring files
- Basic and advanced use of tar
- Compression utilities gzip,bzip2,zip and compress
- Exercise: Backing up and restoring files using tar
- Exercises: Compressing files
BACKGROUND JOB SCHEDULING
- Scheduling jobs with the cron command
- Scheduling jobs with the at command
- Exercises: Running background jobs
COMMANDS FOR COMPARING FILES
- Compare files with the cmp command
- Compare and format files with pr
- Compare files with the comm command
- Compare files with the diff and sdiff commands
- Compare large files with the bdiff command
- Exercises: Identifying file differences
SPLITTING FILES
- The fold command
- Split files using context and content rules
- Exercises: Splitting files
IDENTIFYING AND TRANSLATING CHARACTERS
- od - octal dump
- Use cat to display non-printing characters
- View and format files with nl
- The expand and unexpand commands to convert between tab and space characters
- The tr command for character translation
- Exercises: Translating characters with tr
REGULAR EXPRESSION NOTATION REVIEW
- Standard regular expressions
- Searching with grep
- Metacharacters,positional characters and quantifiers
- Extended regular expressions
- POSIX character classes
- PERL expressions
THE STREAM EDITOR sed
- sed command line syntax
- sed script files
- sed command processing
- sed addresses and simple instructions
- sed pattern space and hold space
- Grouping sed commands
- Hold and get functions
- Advanced flow control
- Write output to temporary files
- Exercises: Text processing with sed
FUNDAMENTALS OF AWK
- Basic AWK usage
- AWK program-files
- AWK scripts
- AWK variables
- Pattern matching with AWK
- AWK extended patterns
AWK OPERATORS
- AWK AND,OR and range operators
- AWK arithmetic operations
- AWK output
- Formatting output with printf
- Exercises: Create awk scripts to extract selected data from a file and generate reports
AWK PROGRAM CONTROL STRUCTURES
- The BEGIN and END functions
- The AWK if construct
- The AWK else if construct
- The AWK while construct
- Other program control statements
- The AWK break,continue and exit statements
- User defined functions
- Exercises: Create AWK scripts and program-files utilising program control structures
AWK FUNCTIONS
- AWK string functions
- AWK length,tolower,toupper,index,sub,gsub,match,substr,split,sprintf,system and getline functions
- Exercises: Generate AWK scripts and program-files to extract and format data using AWK functions
AWK ARRAYS
- AWK associative arrays
- Multi-dimensional arrays
- Exercises: Create AWK associative arrays to process text files and generate reports
MISCELLANEOUS TOOLS
- bc (calculator)
- fuser (testing for files in use)
- getops (checking options passed to shell scripts)
- printf (formatting screen output)
- logger (script logging)
- xargs (generating arguments for a command)
- eval (re-evaluating variables)
- Exercises: Using tools within a shell script
TENHO INTERESSE