Linux Scripting Techniques

Welcome to the Linux Scripting Techniques practice lab. In this module, you will be provided with the instructions and devices needed to develop your hands-on skills.

Overview

Learning Outcomes:

In this module, you will complete the following exercises:

  • Exercise 1 - Search Files using grep
  • Exercise 2 - Working with Regular Expressions
  • Exercise 3 - Create a Non-interactive Script
  • Exercise 4 - Create an Interactive Script
  • Exercise 5 - Create Scripts using Loops and Conditions

After completing this module, you should be able to:

  • Find a String Pattern using grep
  • Search for Lines
  • Use Regular Expressions to Escape Special Characters
  • Use Regular Expressions with Ranges
  • Use Regular Expressions with Wildcards
  • Use Regular Expressions in a Text Editor
  • Create a “Hello, world!” Script
  • Use Variables in a Script
  • Test the Scope of the Variables
  • Create a Script that requires User Input
  • Generate a Log once the Script is Executed
  • Redirect Errors
  • Create Scripts using Loops
  • Create Scripts using Conditions and User Interaction

Exam Objectives:

The following exam objectives are covered in this module:

3.1 Given a scenario, create simple shell scripts to automate common tasks

  • Shell script elements
  • Common script utilities