1. Home
  2. Computing & Technology
  3. Linux

Bash Guide For Beginners

From Authors, for About.com


   Bash Guide for Beginners
   Prev        Next

Chapter 7. Conditional statements

In this chapter we will discuss the use of conditionals in Bash scripts. This includes the following topics:

  • The if statement

  • Using the exit status of a command

  • Comparing and testing input and files

  • if/then/else constructs

  • if/then/elif/else constructs

  • Using and testing the positional parameters

  • Nested if statements

  • Boolean expressions

  • Using case statements


   Prev    Home    Next
   Exercises         Introduction to if


* License

* Bash Guide For Beginners Index

Explore Linux

More from About.com

  1. Home
  2. Computing & Technology
  3. Linux
  4. Linux Documentation
  5. Bash Guide for Beginners
  6. Bash Guide For Beginners - Conditional statements

©2008 About.com, a part of The New York Times Company.

All rights reserved.