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 -->
  #4 (permalink)  
Old 11-07-2007
moustik moustik is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 18
pouf an other issue, I'm fitting with my script to make it reliable

here is ...
in the reality for the test a and b are equal number c and d are different number

a=ISL
b=ISF
c=INL
d=INF

eg more $d
48922183

if [ "$c -eq $d" ] ; then echo "Sys File sizes match" ; else echo "Sys File sizes differ Errror" ; fi

When I launch this I get the same reply for both case which is wrong a=b and c diff d

I've tryied may possibilities with [[]] and "" and = but no one is working well. any one can help pls?