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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-24-2005
gopskrish gopskrish is offline
Registered User
 

Join Date: Jun 2005
Posts: 26
How can i check for a day

Hi,

When i tried this I am getting bad number
if [[ $(date '+%a') -eq Sat ]]; then now=saturday echo $now; else now=notsaturday echo $now; fi

How can i check for the same.

Thanks in advance
(I am new to Unix and so i raise some silly questions, please dont mistake me)
cheers,
gops
Reply With Quote
Forum Sponsor