The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 09-03-2007
anchal_khare anchal_khare is offline
Registered User
 

Join Date: Jun 2007
Location: Mumbai,India
Posts: 99
x=`date +"%H"`
if [ $x == "08" ]
then
echo "Stay at home"

elif [ $x == "09" ] || [ $x == "10" ]
then
echo "Go office"
else
echo "do what ever u want "
fi
Reply With Quote