Bash Scripting Flow Control & Data Types

Unix    |    Intermediate
  • 12 Videos | 1h 23m 30s
  • Includes Assessment
  • Earns a Badge
Likes 78 Likes 78
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

  • Playable
    1. 
    Using if...then...else Statements
    7m 15s
    UP NEXT
  • Playable
    2. 
    Recognizing and Using Comparison Operators
    5m 31s
  • Locked
    3. 
    Working with For Loops
    10m 5s
  • Locked
    4. 
    Using While and Until Loops
    6m 28s
  • Locked
    5. 
    Using Break and Continue Inside a Loop
    6m 49s
  • Locked
    6. 
    Creating a Case Statement
    4m 27s
  • Locked
    7. 
    Creating and Manipulating Arrays
    6m 12s
  • Locked
    8. 
    Performing Math Operations
    4m 41s
  • Locked
    9. 
    Converting Numbers between Bases
    8m 46s
  • Locked
    10. 
    Manipulating Strings
    7m 2s
  • Locked
    11. 
    Working with Directories
    4m 13s
  • Locked
    12. 
    Exercise: Using Conditions and Data Types in Bash
    6m 32s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

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

Digital badges are yours to keep, forever.

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

COURSE SOLID & GRASP
Likes 3218 Likes 3218  
Likes 141 Likes 141  
Likes 129 Likes 129