Bash Tutorial 3: If Then Else Elif

Channel:
Subscribers:
54,800
Published on ● Video Link: https://www.youtube.com/watch?v=uYDxQ5L8zqE



Category:
Tutorial
Duration: 6:20
28,514 views
240


How to use Conditional If, Then, Else, ElseIf (Elif) statements to make programming decisions in Linux Bash Script Programming. In Bash we have the added complexity of awkward brackets and whitespace requirements, which can cause much frustration to programmer who is certain they have written the if statement correctly.

In this tutorial I show how:
0:14 Use If, Elif, and Else to make a Simple menu
2:06 If Not Equal !=
2:24 Greater than, Less than
3:26 Logical AND, Logical OR - &&, ||
4:00 Logical OR comparing two IF Statements
5:10 Check to see If a File, Directory / Folder exists

Bash Tutorial Playlist: http://www.youtube.com/playlist?list=PLzZ0JczEkZfkvvycruN04zx6NmYYaavQI
Tutorial 2: Using Variables - http://youtu.be/FLUYFP7ezqc
Tutorial 4: Loops - http://youtu.be/sCmqBkz1yYY

Script Download: https://raw.githubusercontent.com/quidsup/bash-tutorials/master/3-IfThenElse.sh
Wallpaper: http://quidsup.net?i=ws_Digital_Art_Blue_Explosion







Tags:
Linux
Bash
Script
Programming
Guide
Terminal
Basic
If
Then
Else
Elif
Else If
Conditional
File Exists
Computing
Ubuntu
Mint
Debian
Arch
Fedora
Gentoo
Quids
Quidsup