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

Join Date: Jul 2008
Location: Geneva, Switzerland
Posts: 23
Two conditions in one if statement

I'm totally new with bash programming and I don't get it how to put two conditions in one if statement. My code looks like this:

Code:
h=`date +%k`
if [ [ $((h>9)) ] && [ $((h<21)) ] ]; then

$h is 10 but I don't get into my if statement. What's wrong here?