Results 1 to 3 of 3
I'm attempting to script an application for the bash shell. The application needs to check for birthday, but must check the birthday to see if the date is a) in ...
- 10-07-2007 #1Just Joined!
- Join Date
- Oct 2007
- Posts
- 4
Checking for future / non existent dates
I'm attempting to script an application for the bash shell. The application needs to check for birthday, but must check the birthday to see if the date is a) in the future b) exists at all (ie Feb 29th during non-leap years). The input is being entered in a YYYYMMDD format, so I was hoping someone could point me in the direction for how to check for future dates and non-existent dates.
Thanks
- D
- 10-08-2007 #2
This is fairly easy to do in a bash shell script.
A good place to start is to do this on the command line:
Then check out the tutorials by googling this:Code:man bash
Sounds like an interesting homework assignment!Code:bash tutorial
- 10-08-2007 #3Linux User
- Join Date
- Aug 2006
- Posts
- 458


Reply With Quote
