List,

 

Sorry to deviate from the topic, but

I am writing a korn shell script that would exit if the date format is

incorrect.

 

I just need something to compare the date format passed  in with DD-MON-YYYY.

 

Eg.

I am passing an argument to my ksh script being the date.

If the date is in any other format but DD-MON-YYYY the ksh must exit.

 

Eg.  sh test.ksh 02/05/1999

 

It must exit.

 

The only format excepted should be

sh test.ksh 02-MON-YYYY

 

TIA

 

Regards

Suhen

 

 

Reply via email to