The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-29-2008
spirtle spirtle is offline
Registered User
  
 

Join Date: Jun 2008
Location: Scotland
Posts: 150
Either use a string comparison

Code:
if [ "$Noupdated" == "0" ]

or test for the variable

Code:
if [ -n "$Noupdated" ] && [ $Noupdated -eq 0 ]