#2 Assignment - BashScript
Description
Write a bash script with 3 functions and it takes your birthdate (day, month, year) and weekday of birth as inputs which:
- The first function should validate the weekday of birth is True or not.
- The second function should calculate the number of passed days after your birthday if less than 6 months is passed; otherwise, the number of remaining days to your birthday.
- The third function should calculate the days' difference between your birthdate and any other date.
Deadline
- Sunday 13th Oct. 22:00
RUN
Remember to set execution permission to your script file. You only need to set it once for that file.
chmod +x script.sh
./script.sh
Submission
Submit just a bash script file in LMS. The file should be named as [9652xxxx.sh
]. For example 96521234.sh
.