I have a requirement that if a day of the week is either Monday, Tuesday or Wednesday , perform certain scripts otherwise I don't do anything.if [[ $(date '+%a') == Mon && $(date '+%a') == Tue && $(date '+%a') == Wed ]]thenecho PERFORM TASKelseecho DONT DO ANYTHING fiI'm getting DONT DO ANYTHINGWhich is wrong. because today date is Monday.. so I was expecting to get PERFORM TASK... If I only do just Monday only, is working ...if [[ $(date '+%a') == Mon ]] .. is when I add the other days , isn't working....what am I doing wrong? please help.
How do I use an If-Else to do certain things if the days of the week are set of days?
shell script;shell;regular expression