The UNIX and Linux Forums  
Hello and Welcome from to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-07-2008
philplasma's Avatar
philplasma philplasma is offline
Registered User
  
 

Join Date: May 2007
Location: Quebec
Posts: 18
Question checking for non-zero value

I have a process that spits out a file called sqlplus.out, here is what the result looks like:
Quote:
$ cat sqlplus.out

MAX_ID-LAST_ID
--------------
0
Currently the value you see is zero, what I need to do is perform an action if that value is non-zero, so how do I check that value in an if statement? If it helps at this moment in development the line with the value will always be on line 4.

Thanks for the help!