Part 2 - Beginners Guide to Bash Scripting
This guide is part of a series, be sure to check out the other parts as well. Part 1 - Introduction to Bash, Variables, Comments, User Input Part 2 - If/Else Statements, Looping (This Page) Part 3 - Functions in Bash Part 4 - Creating Menus in Bash In this part, we will be covering the following topics related to Bash scripting on Linux. If/Else Statement Loops Being able to control the flow, do comparisons, make decisions and loop are all core parts of any programming or scripting language. Bash offers all of these and if you’re already familiar with other programming and scripting languages, you will pick up the syntax pretty easily. Let’s jump in with if/else statements, you will find many example bash scripts below to help you. ...