Video description
Duration
More than 9 hours of video instruction
Overview
More than 9 hours of video instruction to help you learn bash from the ground up from fundamental scripting concepts to complex scripting techniques.
Description
Bash Scripting Learning Path teaches you everything you need to know about shell scripting, from novice scripting to advanced script analysis and scripting for performance. This course consists of 16 lessons that take you from learning Bash basics to advanced scripting concepts. Each lesson contains practical examples to show how scripting solutions are being used in the real world. Each lesson concludes with an exercise, so you can test your own skills. A video explanation is also included so you can follow along and check your work. You will end the course by going beyond Bash and starting your first Python project.
The video lessons cover the following topics:
- Bash scripting fundamentals
- Creating your first shell script
- Working with variables and parameters
- Transforming input
- Using essential external tools
- Using conditional statements
- Using advanced scripting options
- Script debugging and analyzing
- Scripting by example
- Advanced Bash Scripting
- Reviewing basics
- Scripting best practices
- Understanding syntax differences
- Using advanced awk, sed, and regular expressions
- Analyzing advanced scripts
- Writing a complex script
- Scripting for performance
- Beyond Bash; scripting in Python
About the Instructor
Sander van Vugt is an independent Linux trainer, author, and consultant living in the Netherlands. Sander has written numerous books about different Linux-related topics and many articles for Linux publications around the world. Sander has been teaching Red Hat, Ubuntu, SUSE, and LPI Linux classes since 1994. As a consultant, he specializes in Linux High Availability solutions and Performance Optimization. More information about Sander is on his website at www.sandervanvugt.com.
Skill Level
Beginning to intermediate
What You Will Learn
- Bash scripting from fundamentals to advanced
- Real-world scripting examples
Who Should Take This Course
The target audience for this course consists of Linux users and professionals who want to automate tasks in Linux using Bash shell scripts. A secondary target audience consists of IT users and professionals who want to get experience with simple programming languages.
About LiveLessons Video Training
LiveLessons Video Training series publishes hundreds of hands-on, expert-led video tutorials covering a wide selection of technology topics designed to teach you the skills you need to succeed. This professional and personal technology video series features world-leading author instructors published by your trusted technology brands: Addison-Wesley, Cisco Press, IBM Press, Pearson IT Certification, Prentice Hall, Sams, and Que. Topics include IT Certification, Programming, Web Development, Mobile Development, Home and Office Technologies, Business and Management, and more.
View all LiveLessons on InformIT at http://www.informit.com/livelessons.
Table of Contents
Bash Scripting Learning Path by Sander van Vugt
Introduction
Bash Scripting Fundamentals by Sander van Vugt
Introduction
Lesson 1: Creating Your First Shell Script
Learning objectives
1.1 Why Scripting in Bash Makes Sense
1.2 Choosing an Editor
1.3 Core Bash Script Ingredients
1.4 Storing and Running the Script
1.5 Using Bash Internal Commands versus External Commands
1.6 Finding Help About Scripting Components
Exercise 1
Exercise 1 Solution
Lesson 2: Working with Variables and Parameters
Learning objectives
2.1 About Terminology
2.2 Using and Defining Variables
2.3 Defining Variables with the read Command
2.4 Understanding Variables and Subshells
2.5 Sourcing
2.6 Quoting
2.7 Handling Script Arguments
2.8 Understanding the Need to Use Shift
2.9 Using Command Substitution
2.10 String Verification
2.11 Using Here Documents
Exercise 2
Exercise 2 Solution
Lesson 3: Transforming Input
Learning objectives
3.1 Working with Substitution Operators
3.2 Using Pattern Matching Operators
3.3 Understanding Regular Expressions
3.4 Calculating
Exercise 3
Exercise 3 Solution
Lesson 4: Using Essential External Tools
Learning objectives
4.1 Using grep
4.2 Using test
4.3 Using cut and sort
4.4 Using tail and head
4.5 Using sed
4.6 Using awk
4.7 Using tr
Exercise 4
Exercise 4 Solution
Lesson 5: Using Conditional Statements
Learning objectives
5.1 Using if then fi
5.2 Using and ||
5.3 Using for
5.4 Using case
5.5 Using while and until
Exercise 5
Exercise 5 Solution
Lesson 6: Using Advanced Scripting Options
Learning objectives
6.1 Working with Options
6.2 Using Functions
6.3 Working with Arrays
6.4 Defining Menu Interfaces
6.5 Using trap
Exercise 6
Exercise 6 Solution
Lesson 7: Script Debugging and Analyzing
Learning objectives
7.1 Design Considerations
7.2 Common Analyzing Tools
7.3 Using bash -x
Exercise 7
Exercise 7 Solution
Lesson 8: Scripting by Example
Learning objectives
8.1 Monitoring CPU Utilization Part 1
8.2 Monitoring CPU Utilization Part 2
8.3 Practicing Calculation
8.4 Reading an init Script
8.5 Using a Countdown Script
8.6 Efficient if then fi
8.7 Simple Process Monitoring
Summary
Bash Scripting Fundamentals: Summary
Advanced Bash Scripting by Sander van Vugt
Introduction
Lesson 1: Reviewing Basics
Learning objectives
1.1 Using Pattern Matching
1.2 Using Command Substitution
1.3 Using Arguments and Variables
1.4 Using Iteration Structures (Part 1)
1.5 Using Iteration Structures (Part 2)
1.6 Using Arrays
1.7 Using Functions
1.8 Analyzing Math Script
Exercise 1
Exercise 1 Solution (Part 1)
Exercise 1 Solution (Part 2)
Lesson 2: Scripting Best Practices
Learning objectives
2.1 Organizing Scripts
2.2 Working With Include Files
2.3 Using Internal vs. External Commands
2.4 Making Shell Scripts More Secure
2.5 Analyzing Foo Script
2.6 Analyzing Cd Script
Exercise 2
Exercise 2 Solution
Lesson 3: Understanding Syntax Differences
Learning objectives
3.1 Understanding the Origins of Bash
3.2 Using Bourne Style Syntax
3.3 Using C-Style Syntax
3.4 Using Different Methods to Test
3.5 Using Different Methods to Calculate
3.6 Analyzing Tcsh Script
3.7 Analyzing Tcsh Script in Bash
Exercise 3
Exercise 3 Solution
Lesson 4: Using Advanced awk, sed, and Regular Expressions
Learning objectives
4.1 Using Regular Expressions
4.2 Understanding sed Basics
4.3 Performing Advanced sed Operations
4.4 Understanding awk Basics
4.5 Performing Advanced awk Operations
Exercise 4
Exercise 4 Solution
Lesson 5: Analyzing Advanced Scripts
Learning objectives
5.1 Analyzing the Structure
5.2 Analyzing the Parts in the Script
5.3 Analyzing the /etc/init.d/network Script
5.4 Analyzing the /etc/profile Script
Exercise 5
Exercise 5 Solution
Lesson 6: Writing a Complex Script
Learning objectives
6.1 Defining the Mission Statement
6.2 Creating the Script Structure
6.3 Writing the Code
6.4 Considering Next Steps (Part 1)
6.5 Considering Next Steps (Part 2)
6.6 Implementing Next Steps
Exercise 6
Exercise 6 Solution (Part 1)
Exercise 6 Solution Part 2
Lesson 7: Scripting for Performance
Learning objectives
7.1 Optimizing Loops
7.2 Minimizing File Writes
7.3 Minimizing External Command Usage
7.4 Avoiding Useless Commands (cat /etc/passwd | grep root)
7.5 Minimizing Operations
7.6 Analyzing Script Performance with time
7.7 Analyzing Script Performance with strace
Exercise 7
Exercise 7 Solution
Lesson 8: Beyond Bash; Scripting in Python
Learning objectives
8.1 Comparing Bash to Python
8.2 Programming in Python
8.3 Writing your First Python Script
8.4 Working with Arguments
8.5 Using Indentation
8.6 Interactive Python
8.7 Writing Output to Files
Exercise 8
Exercise 8 Solution
Summary
Advanced Bash Scripting: Summary