Bash Scripting Flow Control & Data Types
Unix
| Intermediate
- 12 Videos | 1h 18m
- Includes Assessment
- Earns a Badge
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 expressionsrecognize numeric, string, and test comparison operators and create compound conditional statementswork with for loops and wildcardsuse while and until loops to iterate through a list or run until a condition is achieveduse break and continue to control the iterations of a loopcreate 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 arrayperform simple math operations in a Bash script and use the bc utility to do floating point mathcreate and use a Bash script to convert numbers between different basesmanipulate strings using the built-in Bash string manipulation operationsuse popd, pushd, dirs, pwd, cd, and $DIRSTACK to work with directories and directory structures in a Bash scriptwork with conditional statements, loops, and arrays in Bash scripts and manipulate string and numeric data
IN THIS COURSE
-
1.Using if...then...else Statements7m 15sUP NEXT
-
2.Recognizing and Using Comparison Operators5m 31s
-
3.Working with For Loops10m 5s
-
4.Using While and Until Loops6m 28s
-
5.Using Break and Continue Inside a Loop6m 49s
-
6.Creating a Case Statement4m 27s
-
7.Creating and Manipulating Arrays6m 12s
-
8.Performing Math Operations4m 41s
-
9.Converting Numbers between Bases8m 46s
-
10.Manipulating Strings7m 2s
-
11.Working with Directories4m 13s
-
12.Exercise: Using Conditions and Data Types in Bash6m 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.