IBM developerWorks: Bash by example, Part 2

“In his introductory article on bash, Daniel Robbins walked you
through some of the scripting language’s basic elements and reasons
for using bash. In this, the second installment, Daniel picks
up where he left off and looks at bash’s basic constructs like
conditional (if-then) statements, looping, and more.

“Let’s start with a brief tip on handling command-line
arguments, and then look at bash’s basic programming