I have an input which will be given by an user and I have to check whether it a date type or not ? How can I do it using shell script ? If it is of date type then one command will execute otherwise another will execute .
Asked
Active
Viewed 13 times
0
-
1http://stackoverflow.com/questions/21221562/bash-validate-date might help you with validation of date – zedfoxus Dec 19 '16 at 16:11
-
@RanganRoy: Please also read about [how to ask a question](http://stackoverflow.com/help/how-to-ask). – mklement0 Dec 19 '16 at 16:17
-
My question was how so compare two dates in shell script , two dates are stored into two varriables and that dates can be of any format . Sorry for the previous inconvenience ... – Rangan Roy Dec 20 '16 at 13:49