![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ! operator in variable | mmunir | Shell Programming and Scripting | 1 | 05-30-2008 12:29 AM |
| Help need: new line operator : | satyam_sat | Shell Programming and Scripting | 3 | 04-07-2008 06:31 AM |
| ternary operator | naan | High Level Programming | 1 | 04-12-2007 12:58 AM |
| And operator | rcarnesiii | Shell Programming and Scripting | 4 | 08-03-2005 11:04 PM |
| Operator question | TheCrunge | UNIX for Dummies Questions & Answers | 5 | 03-01-2005 12:27 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Or operator with if
hi,
i was trying to club to test condition with if. if [ $1 -ne 0 ] -o [ $2 -ne 0 ]; then it is giving me error message, i wanted to ask how can we check two condtions with one if. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Code:
if [ $1 -ne 0 -o $2 -ne 0 ]; then |
||||
| Google The UNIX and Linux Forums |