Thank you for sending your enquiry! One of our team members will contact you shortly.
Thank you for sending your booking! One of our team members will contact you shortly.
Duration 14 hours
Course Outline
Foundational Scripting Constructs
Specifying the Interpreter (Shebang Directive)
Executing Scripts
Built-in versus External Commands
Special Syntax Characters
- Commenting with the Hash Symbol (#)
- Terminating Commands with a Semicolon (;)
- Null Operations (Colon :)
- Input and Output Redirection Symbols (>, <, >>)
- Routing Standard Output
- Routing Standard Input
- Piping Processes (|)
- Background Execution Operator (&)
Variable Management and Parameters
- Removing Variables (unset command)
- Handling Empty Values
- Capturing Command Output (Backticks)
- Positional Parameters ($0, $#, $1, $2, $3, etc.)
- Parameter Shifting
- String Quoting Mechanisms
- Escape Sequences (Backslash)
Regular Expressions
Conditional Logic
- Basic If-Then Syntax
- If-Then-Else Syntax
- Nested Conditional Structures
- If-Elseif Syntax
- Case Selection Statements
- Logical Operators
- Conjunction and Disjunction (&&, ||)
- The test Command
Script Termination
The exit Directive
Utilizing Exit Status Codes ($?)
Diagnostic Tests and Operators
- Text File Operators
- File Type Verification
- File Attribute Checks
Comparison Operators
- Arithmetic Comparison in Conditionals
- Integer Comparison Symbols
- String Comparison Methods
- Compound Logical Comparisons (and, or)
- Nested Operator Logic
- Assignment Operators
- Arithmetic Symbols
- Bitwise Operations
- Logical Operations
- Numeric Constants
Iteration Loops
- For-Loops
- The seq Utility
- While Loops
- Until Loops
- Loop Control Flow (break, continue)
Text Manipulation
- head and tail Utilities
- sort, uniq, expand, and unexpand Commands
- cut, paste, join, wc, and tr Utilities
Pattern Matching (grep)
Stream Editing (sed)
Interactive Processes
- The read Command
- User Selection Prompts
Additional Features
The sleep Command
Troubleshooting Non-Functional Scripts (Debugging)
Requirements
- Proficiency with fundamental Linux commands and file system navigation
- Practical experience with shell interactions and basic text editing in Linux environments
- Completion of the "Introduction to Linux" module is advisable but not mandatory
Target Audience
- Linux operators seeking to implement automation via shell scripting
- System administrators aiming to improve server management and operational efficiency
- Developers and IT professionals looking to advance their Linux programming competencies for government applications