Bash Shell Scripting Tutorial - Part 3

An introduction to Bash Shell scripting


Welcome to the Land of Linux's tutorials and guides. In part 3 of our Bash Scripting tutorial we will cover how to use conditional processing, compare strings, use boolean operators and case statements.

Conditional Processing

If then else statements. How to use conditional processing in Bash shell scripts

Comparing Strings

String comparison tests, Using single and double brackets. Basic regular expressions.

Substrings

Calculating the length of a string, extracting a substring from a variable.

Comparing Numbers

Working with numerical operators. Integer operators.

Boolean Operators

Working with Boolean operators. Logical Negation, Logical AND and Logical OR operators.

Case Statements

Using case statements to simplify logic within bash shell scripts.

Quick Install Links

  • Ubuntu

    Quick installation guide link for Ubuntu 20.04 LTS.

  • CentOS 8

    Quick installation guide link for CentOS 8.

Desktop Operating Systems

Server Operating Systems