![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help needed in using case statement | jisha | Shell Programming and Scripting | 0 | 01-16-2008 04:33 AM |
| case statement | bkan77 | Shell Programming and Scripting | 5 | 09-11-2007 05:54 PM |
| multiple Logical statement | mahabunta | UNIX for Dummies Questions & Answers | 3 | 10-03-2006 12:28 PM |
| Case Statement | Zeta_Acosta | Shell Programming and Scripting | 19 | 04-06-2004 04:16 PM |
| case statement | Bab00shka | Shell Programming and Scripting | 1 | 07-15-2002 05:31 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Logical AND within a case statement ??
Hi there, probably a really simple question to answer but i cant seem to find it
can I use a logical AND (&&) within a CASE statement ie (ps this is useless syntax but youll get the idea Code:
case "$var1","$var2" in
'Billy' && 'Bobby')
echo "do some stuff"
;;
'Peter' && 'Bobby')
echo "do some other stuff"
;;
esac
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|