Librenix
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

The Bash Case Statement

Up
vote
Down

When you would like users to interact with the Bash Shell script, you can use case statements to allow them to make choices that create a more intelligent outcome with the script.
The case statement provides a way to avoid using if..then..else statements. It allows users to enter a text string, then evaluate that string and provide the option that the string indicates.
 read more | score:7791 | -aweber, May 2, 2011
More Programming articles...

Abstract Art by Ray Yeargin

coding headlines

No Starch Press has published my Perl One-Liners book!

OpenShift Online: a non-developer guide

Unix: Shell Script Wrapper Examples

Introduction to Perl one-liners

E-book: Perl One-Liners Explained

Perl One-Liners Explained: Handy Regular Expressions

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin