| |
| |
 |
| |
|
|
|
Shell Programming with the Shell |
| |
|
Introduction |
- Shells
- Types of Unix shells
- Uses for shell scripts
- Advantages of shell scripts
|
|
| Bash
Basics |
- Initialization Files
- Login shells
- Non-login shells
- Aliases
- Variables
- Working with variables
- Important Internal Bash variables
- Command History
- Input and output Channels
- Redirection to files
- The here operator <<
- Feeding output to another process
- Duplicating the output with tee
- Types of commands
- Quoting
- Substitution and Expansion
- Variable substitution
- Filename Expansion(File Globbing)
- Command Substitution
- Arithmetic Substitution
- Command line Interpretation
- Command Separators
|
|
|
Basic script Elements 1 ( input, output) |
- Program Flow charts
- General considerations
- Producing output from a script
- Reading user input
- Simple Operations with variables
- Basic string operations
- Arithmetic Operations
|
|
| Basic
Script Elements2 ( control Structures ) |
- Simple branching with if
- Short Forms of if
- Multiple Branches with case
- Iterations and loops
- Looping With While and until
- Processing list with for
- Exiting From Loop
- Exiting From the current loop Iteration with continue
- Exiting from a loop with break
|
|
|
Advanced Scripting Techniques |
- Reading input with read
- Shell Functions
- Reading options with getopts
- Signal handling with trap
- Implementing simple Menus with select
- Dialog boxes with dialog
- yes/no box (yesno)
- Message Box (msgbox)
- Input box (input box)
- Text Box (text box)
- Menu ox (menu)
- Check List Box (checklist)
- Radio list Box (radiolist)
- Progress Meter Box (guage)
|
|
|
Useful Commands for shell scripts |
- a.1 cat
- a.2 cut
- a.3 date
- a.4 echo
- a.5 grep , egrep
- a.6 sed
- a.7 test
- a.8 tr
|
| |
|