Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.


  Search this Thread
Old 06-11-2019, 04:52 PM   #1
LXer NewsBot
Registered: Dec 2005
Posts: 104,689

Rep: Reputation: 117Reputation: 117
LXer: Bash Case Statement with Examples

Published at LXer:

Bash case statements can be used to replace multi-level if else statement. You can use the case statement to match one variable against several values. The bash case statement is similar to switch statement in C programming but bash switch statement does not go ahead one its found.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Bash Case Statement LXer Syndicated Linux News 0 03-01-2019 09:13 PM
Perl switch statement throwing error like Bad case statement (invalid case value?) kavil Programming 2 10-07-2010 04:50 AM
Case statement with If statement cbo0485 Linux - Newbie 4 11-07-2007 08:05 PM
Pattern matching with a "case" statement in BASH King V Programming 8 04-27-2006 04:19 PM
bash'ed by case statement??? 3inone Programming 2 04-29-2004 04:52 PM > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration