![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help to delete brackets [ ] | kamel.seg | Shell Programming and Scripting | 4 | 01-18-2008 11:53 AM |
| why put double square brackets in an if clause? | napolayan | UNIX for Dummies Questions & Answers | 5 | 11-16-2006 03:18 AM |
| how do you use brackets ?? in a script. | moxxx68 | Shell Programming and Scripting | 3 | 09-27-2004 11:57 PM |
| square brackets | gilead29 | UNIX for Dummies Questions & Answers | 2 | 02-03-2004 11:29 AM |
| Angle brackets | PxT | Post Here to Contact Site Administrators and Moderators | 1 | 04-05-2001 07:06 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
usage of brackets for if
Hi,
I would like to know about the usage of brackets to negate a set of boolean evaluations an equivalent to what i am trying is below if [ ! [ [$INPUT=="Morning"] or [$INPUT=="Evening"] || [$INPUT=="Night"] ] ] then echo"valid time of day" else echo "invalid input" exit fi the bracket structue as mentioned doesnt work .. i am using ksh. Please help. Thanks a dozen. hoping for a quick reply . |
|
|||||
|
Look at http://www.tldp.org/LDP/abs/html/tests.html
This is for bash, but I think it is also appropriate for ksh (At leas this gives good understanding of tests in shell scripts) |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|