Bash Scripting Flow Control & Data Types

Unix    |    Intermediate
  • 12 videos | 1h 18m
  • Includes Assessment
  • Earns a Badge
Rating 4.5 of 714 users Rating 4.5 of 714 users (714)
Bash syntax is a scripting language used for data manipulation. During this course, you will learn how to form conditional statements and evaluate them with the Bash test command tool. Begin by creating compound conditional statements with comparison operators. Next, learn how to use a for loop construct within a Shell script. Other topics include wildcards, while loops, until loops, break and continue commands, and case statements. From there you will observe how to create an array, and manipulate data. Then discover how to perform simple math operations, calculate floating point math, and convert numbers between bases. Conclude by employing Bash's string manipulation operations and learn the basic syntax to manipulate strings, directories, and directory structures.

WHAT YOU WILL LEARN

  • Work with conditional statements in bash scripts and use the built-in test command to evaluate expressions
    Recognize numeric, string, and test comparison operators and create compound conditional statements
    Work with for loops and wildcards
    Use while and until loops to iterate through a list or run until a condition is achieved
    Use break and continue to control the iterations of a loop
    Create a case statement and use it in place of a nested if statement
  • Create an array by adding and removing elements and manipulate the data in the array
    Perform simple math operations in a bash script and use the bc utility to do floating point math
    Create and use a bash script to convert numbers between different bases
    Manipulate strings using the built-in bash string manipulation operations
    Use popd, pushd, dirs, pwd, cd, and $dirstack to work with directories and directory structures in a bash script
    Work with conditional statements, loops, and arrays in bash scripts and manipulate string and numeric data

IN THIS COURSE

  • 7m 15s
    Find out how to work with conditional statements in Bash scripts and use the built-in test command to evaluate expressions. FREE ACCESS
  • 5m 31s
    Upon completion of this video, you will be able to recognize numeric, string, and test comparison operators and create compound conditional statements. FREE ACCESS
  • Locked
    3.  Working with For Loops
    10m 5s
    In this video, find out how to work with for loops and wildcards. FREE ACCESS
  • Locked
    4.  Using While and Until Loops
    6m 28s
    During this video, you will learn how to use while and until loops to iterate through a list or run until a condition is met. FREE ACCESS
  • Locked
    5.  Using Break and Continue Inside a Loop
    6m 49s
    In this video, learn how to use the break and continue keywords to control the iterations of a loop. FREE ACCESS
  • Locked
    6.  Creating a Case Statement
    4m 27s
    During this video, you will learn how to create a case statement and use it in place of a nested if statement. FREE ACCESS
  • Locked
    7.  Creating and Manipulating Arrays
    6m 12s
    Learn how to create an array by adding and removing elements and manipulate the data in the array. FREE ACCESS
  • Locked
    8.  Performing Math Operations
    4m 41s
    In this video, you will learn how to perform simple math operations in a Bash script, as well as how to use the bc utility to do floating point math. FREE ACCESS
  • Locked
    9.  Converting Numbers between Bases
    8m 46s
    In this video, find out how to create and use a Bash script to convert numbers between different bases. FREE ACCESS
  • Locked
    10.  Manipulating Strings
    7m 2s
    Learn how to manipulate strings using the built-in Bash string manipulation operations. FREE ACCESS
  • Locked
    11.  Working with Directories
    4m 13s
    Find out how to use popd, pushd, dirs, pwd, cd, and $DIRSTACK to work with directories and directory structures in a Bash script. FREE ACCESS
  • Locked
    12.  Exercise: Using Conditions and Data Types in Bash
    6m 32s
    During this video, you will learn how to work with conditional statements, loops, and arrays in Bash scripts and manipulate string and numeric data. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.6 of 30 users Rating 4.6 of 30 users (30)
Rating 5.0 of 1 users Rating 5.0 of 1 users (1)
Rating 4.5 of 2806 users Rating 4.5 of 2806 users (2806)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 642 users Rating 4.5 of 642 users (642)
Rating 4.4 of 253 users Rating 4.4 of 253 users (253)
Rating 4.5 of 2806 users Rating 4.5 of 2806 users (2806)