Generate Weekday (Mon-Fri) or Weekend (Sat-Sun) from now until specific year.
Generate weekday:
./genweekday.sh 2022 # generate date from now to the end of 2022
Generate weekend:
./genweekend.sh 2023 # generate date from now to the end of 2023
Save result to file:
./genweekday.sh 2022 savehere # generate weekday date from now to the end of 2022 and save it to savehere
./genweekend.sh 2022 savehere # weekend date from now to the end of 2022 and save it to savehere