Chapter 4 Challenges

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

← Dealing with case sensitive patternHomeChapter 5: Bash Loops →

  • Decide whether the following sentence is true or false:
  1. The case statement provides an alternative method for performing conditional execution.
  2. *) acts as default in the case statement.
  3. For testing conditions you can only use the case..in...esac statement.
  4. AND operator is ||
  5. OR operator is ||
  6. NOT operator is !
  • Write a shell script that display one of ten unique fortune cookie message, at random each it is run.
  • Chapter 4 answers

← Dealing with case sensitive patternHomeChapter 5: Bash Loops →