Re: case statement question again...
David Oswald wrote:
>Hello all - I have a KSH script question...
>sorry - the offending line is [10-31]) not [30-31])
What `[10-31]' says is: match any single character which is a 1, a character
from 0 to 3 inclusive, or (another) 1. What you want is `[0-9]|3[0-1]'.
On the other hand, this does not properly handle invalid day/month
combinations, such as 31 February. Do you handle that somewhere else?
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to firstname.lastname@example.org .