I have a shell script that accepts two dates of a date range from the command line and sends the dated into the sqlplus script.
How can I verify that the dates are correct before sending to sqiplus?
I would like to check if:
a) date is entered in a correct format (MM/DD/YYYY) and exit if not;
b) beginning date is less than ending date - exit if not;
c) date is not skipped (no blanks from the user).
Is that possible?