Chapter 4: Conditionals Execution (Decision Making)

From Linux Bash Shell Scripting Tutorial Wiki
Jump to navigation Jump to search

← Chapter 3 ChallengesHomeBash structured language constructs →

Objectives:

  • Use bash control structures to break sequential flow.
  • Testing conditions using if..else..fi and case..in..esac.
  • Use boolean AND, OR, and NOT operators.
  • Comparing numeric, and string data.
  • Comparing file attributes.
  • Passing command line parameters to shell script.

← Chapter 3 ChallengesHomeBash structured language constructs →