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 -->
  #1 (permalink)  
Old 11-17-2008
dragrid dragrid is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 8
Question parsing return from cal command

Jim , Anyone
I do not have GNU date
Besides I am particularly interested in how one can parse the return from the cal command. Say do - cal 11 2008 - and parse out a given date, say the 8th and return that the 8th was Saturday. ( diffrentiating between S for Saturday and Sunday , also in the case of T between Tuesday and Thursday ) . I am trying to use awk but getting stuck. Also can this be done using ARRAY