Curso Unix Shell Scripting Advanced
Curso Unix Shell Scripting AdvancedVisão Geral
Curso Unix Shell Scripting Advanced, Os alunos aprendem a ler, escrever e depurar scripts de shell do Unix, aumentando assim a produtividade aproveitando ao máximo o shell do UNIX. Scripts Unix Shell são os meios pelos quais um shell UNIX ™ é usado como linguagem de programação. Comandos UNIX e construções de controle de linguagem de shell são inseridos em um arquivo pelo programador, então o arquivo é executado como um comando e interpretado como se os comandos tivessem sido digitados na linha de comando do shell. Os scripts de shell do Unix fornecem uma maneira de automatizar grupos de comandos comumente executados - mas os scripts de shell podem fazer muito mais do que isso. Embora muitas tarefas simples sejam automatizadas com pequenos scripts, scripts grandes com centenas de linhas são muito comuns.
Objetivo
Publico Alvo
- Usuários interessados em atuar com UNIX
- Programadores
- Administradores de sistema do UNIX.
- Suporte Técnico
- Analista de Sistema
- Analista de Redes
Pre-Requisitos
Curso Unix Fundation
Materiais
Português/InglêsConteúdo Programatico
UNIX Processes
- What is a Process?
- Process Structure
- The ps Utility
- Options to the ps Utility
- Background Commands
- Killing Background Processes
- Redirecting the Standard Error
Getting Started
- What is a Shell?
- Running Scripts
- Specifying the Script’s Interpreter
- The PATH Environment Variable
- Sub-shells
Variables
- Shell Variables
- The read Command
- The export Command
- The Shell Environment
- Variable Substitution
- Command Substitution
The Login Process
- The Login Process
- The System Profile Script
- Your .profile Script
- The . Command
Conditional Statements
- The Exit Status of Commands
- Command Line Examples
- The test Command
- The if-then-else Construct
- The elif Construct
- case Statements
Loops
- The for Loop
- The while Loop
- Reading Lines From Files
- Using Arrays with Loops
Special Variables
- $$ – PID of Shell
- Command-Line Arguments
- $- Number of Arguments
- $* – All Arguments
- The shift Command
- The set Command
- Getting Options
Quoting Mechanisms
- Single vs. Double Quotes
- What is a Here Document?
- Using a Here Document
- Here Document Quoting
- Ignoring Leading Tabs
Functions
- Shell Functions
- Passing Arguments to Functions
- Returning Values from Functions
- Function Libraries
Advanced Programming
- Shell Arithmetic
- The select Statement
- Terminal Independence in Scripts
- The eval Command
Debugging Techniques
- Using echo
- Using Standard Error
- Options for Debugging
- Script Tracing
- Conditional Debugging
Shell IPC
- Co-processes
- The print and read Commands
- Signals
- The trap Command
- Named Pipes
- The wait Command