The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



Thread: Simple Script
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-11-2008
yongitz yongitz is offline
Registered User
 

Join Date: Apr 2008
Location: Philippines
Posts: 20
When variables are used, they are referred to with the "$" symbol in front of them, so in your test it should be

Code:
if test $A -gt $B
Reply With Quote