The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-03-2007
Registered User
 

Join Date: Oct 2007
Posts: 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.
Reply With Quote
Forum Sponsor
  #2  
Old 10-03-2007
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,644
Code:
if [ $1 -ne 0 -o $2 -ne 0 ]; then
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0