Shell Script

Can someone plz explain to me how to write a shell script to check date?
[79 byte] By [newbie084a] at [2007-11-27 5:16:52]
# 1

#!/bin/sh

date

The above script will print the current date and time. If that's not what you meant, please explain in more detail.

More generally, your question does not appear to be related to Sun Studio. You probably need to get a Linux reference book if you are concerned about Linux specifically. Or you could get a book about whatever is your favorite shell: sh, bash, csh, ksh

O'Reilly publishes many such books

http://www.oreilly.com/pub/topic/linux

that are widely available.

clamage45a at 2007-7-12 10:39:43 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
ok. thanks. i kno the question doesnt belong here but its just that i couldnt find any good references
newbie084a at 2007-7-12 10:39:43 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
actually the script is to check if a date entered in yyyy mm dd format is a saturday
newbie084a at 2007-7-12 10:39:43 > top of Java-index,Development Tools,Solaris and Linux Development Tools...