Shell Scripting with Bash and Z Shell

Paths

Shell Scripting with Bash and Z Shell

Author: Andrew Mallett

This skill focuses on creating shell scripts using Bash and/or Z Shell to automate just about any task on a UNIX system. With the skills here, you’ll maximize your productivity by... Read more

What you will learn

  • Creating a basic shell script
  • Working with variables
  • Declaring and exporting variables
  • Writing functions for code structure and reusability
  • Processing command line options
  • Debugging scripts
  • Calling UNIX commands from a script
  • Writing conditional statements
  • Controlling the flow of execution
  • Managing Input and Output
  • Working with string data
  • Using Bash specialties
  • Running a completed script

Pre-requisites

Familiarity with Bash and Z Shell and using the command line.

Shell Scripting with Bash and Z Shell

This skill focuses on creating shell scripts using Bash and/or Z Shell to automate just about any task on a UNIX system. With the skills here, you’ll maximize your productivity by using shell scripts to automate tasks and make your life easier.

Getting Started with Shell Scripting for Bash and Z Shell

by Reindert-Jan Ekker

Sep 10, 2020 / 1h 4m

1h 4m

Start Course
Description

Shell scripts allow you to automate just about any task on a UNIX system. They combine the power of all the UNIX userland utilities with a powerful scripting language. Whether you are a system administrator, a developer, or a power user, shell scripts will make you more productive. In this course, Getting Started with Shell Scripting for Bash and Z Shell, you'll learn how to automate a file processing task by scripting it. First, you'll gain an understanding of how to create and run your first shell scripts. Then, you'll learn how to store data in shell variables. Finally, we'll add code to check the results of operations and react on that. When you’re finished with this course, you’ll have the skills and knowledge of shell scripting needed to start automating any task you might want to run.

Table of contents
  1. Course Overview
  2. Creating and Running a Shell Script
  3. Using Shell Variables
  4. Conditional Execution

Mastering Bash and Z Shell Scripting Syntax

by Andrew Mallett

Apr 27, 2020 / 2h 43m

2h 43m

Start Course
Description

Discovering the details of shell scripting is a process that normally can take a few years. In this course, Mastering Bash and Z Shell Scripting Syntax, you will learn very quickly the expertise of masters and the ability to write and develop effective and efficient shell scripts. First, you will learn detailed variable management including case conversion and readonly variables. Next, you will discover the complexity of conditional statements advanced test in modern shells. Finally, you will explore how to develop many looping structures and why they are used. When you are finished with this course, you will have the skills and knowledge of advanced shell scripting syntax needed to create awesome shell scripts in Linux. Software required: Ubuntu 18.04 or any modern Linux distribution with access to BASH and ZSH.

Table of contents
  1. Course Overview
  2. Working with Shell Syntax
  3. Working with Variables
  4. Creating Conditional Statements
  5. Building Effective Functions
  6. Understanding Shell Iteration Using Loops

Operationalizing Bash and Z Shell Scripts

by Andrew Mallett

May 1, 2020 / 3h 1m

3h 1m

Start Course
Description

Creating awesome scripts that are functional and look professional is the aim of every developer. As you progress through this course, Operationalizing Bash and Z Shell Scripts, you will learn to accessorize your script with features that add to its purpose. First, you will learn that enabling the features that you need and disabling those that you don't is as easy as the command shoot and set. Next, you will learn how to collect valuable input from your users either through prompts and the read command or the professional approach using getops and command line options. Finally, you will create a script to process text input sent via named pipes and finalize the project as a system service unit. By the time you are finished with this course, you will be able to create awesome scripts that have the functionality you need for each bespoke project. Software required: Any modern Linux distribution with access to BASH and ZSH.

Table of contents
  1. Course Overview
  2. Creating Awesome Scripts
  3. Enabling Shell Power Features
  4. Managing Shell I/O
  5. Debugging Scripts and Shells
  6. Processing Command Line Options
  7. Working with Strings
  8. Running Completed Scripts