The UNIX and Linux Forums  


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 -->
  #4 (permalink)  
Old 07-28-2008
borobudur borobudur is offline
Registered User
  
 

Join Date: Jul 2008
Location: Geneva, Switzerland
Posts: 23
Oh boy! I think I'm to young for this. I'm from the Java generation, bash seems to be quite tricky.

These two seem to work. Is that really the same?


Code:
if [ $h -gt 9 -a $h -lt 21 ]; then


Code:
if [ "$h" -gt 9 ] && [ "$h" -lt 21 ]; then