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.
Course Outline
The Simplest Script
Selecting the Shell (Shebang #!)
Invoking the Script
External and Built-in Commands
Special Characters
- Comments (#)
- Line Endings (;)
- Empty Statements (:)
- Input/Output Redirection (>, <, >>)
- Output Redirection
- Input Redirection
- Pipes (|)
- Background Process Execution (&)
Variables and Parameters
- Variable Destruction (unset)
- Null Value Variables
- Assigning Results to Variables (backticks ``)
- Parameter Expansion ($0, $#,$1, $2, $3...)
- Manual Shift
- Quoting
- Escape Characters (\)
Regular Expressions
Conditional Statements
- The if/then construct
- The if/then/else construct
- Nesting If Statements
- The if/elif construct
- Case Statements
- Operators
- Logical Operators and, or (&&, ||)
- Test Command
Script Completion
The exit statement
Utilizing the program's exit status in a script ($?)
Tests and Operators
- Text File Operators
- File Type Tests
- File Attribute Tests
Comparison Operators
- Arithmetic Comparison Using If
- Integer Comparison Operators
- String Comparison
- Complex Comparisons (and, or)
- Nesting Comparison Operators
- Assignment Operator
- Arithmetic Operators
- Bitwise Operators
- Logical Operators
- Numeric Constants
Loops
- For/In Loop
- Seq Command
- While Loop
- Until Loop
- Loop Control (break, continue)
Text Processing
- Head, Tail Commands
- Sort, Uniq, Expand, Unexpand
- Cut, Paste, Join, Wc, Tr
Text Search (grep)
Stream Editor (sed)
Interactive Programs
- Read Command
- User Select
Features
Sleep Command
Troubleshooting: When Scripts Fail (Debugging)
Requirements
- A solid understanding of basic Linux commands and file system navigation
- Experience with shell usage and simple text editing on Linux
- Completing the "Introduction to Linux" course is recommended, though not mandatory
Audience
- Linux users aiming to automate tasks through shell scripting
- System administrators seeking to optimize server management and operations
- Developers and IT professionals looking to improve their Linux programming skills
14 Hours
Testimonials (1)
The exercises were quite numerous and all very useful.
Christian Ortiz - BANXICO
Course - BASH Programming
Machine Translated