2020年12月25日星期五

Check for date range with bash scripting

I'm trying to make a script that is working from 12/24/2020 through 06/01/2021. For now I olny have it working only for 2 dates with this:

if [ "$(date +'%m%d')" != "1224" ] && [ "$(date +'%m%d')" != "1226" ];  

So this script should be working from 12/24 - 01/06. Any suggestions? Thanks

https://stackoverflow.com/questions/65453087/check-for-date-range-with-bash-scripting December 26, 2020 at 09:47AM

没有评论:

发表评论