Hi All,
I have tried to use ckdate (sun) command in script. It checks the input parameter which should be in 'YYYYMMDD format.
date=$( echo $1 | ckdate -f "%Y%m%d") | true
if [[ $? == 0 ]]
then
print " success"
else
print "no success"
fi
But in whatever format i pass the parameter, it shows "Success". Can someone help me where i am wrong?
i couldn't get ckdate to read from stdin.... try this:
ckdate -f "%Y%m%d"
if [[ $? == 0 ]]
then
print " success"
else
print "no success"
fi
nahhh.... this doesn't work . . . . aurgh?!?!
kudoes to anyone that can show me how to use ckdate.
Stupid utility.
cj? neo?
Hi all,
This is the solution...
This utility will help to reduce the code, while validating the input parameters.