LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   setting from date to date without Saturday and Sunday in reminders.rem (https://www.linuxquestions.org/questions/linux-newbie-8/setting-from-date-to-date-without-saturday-and-sunday-in-reminders-rem-4175701447/)

lqmsh 10-03-2021 09:42 PM

setting from date to date without Saturday and Sunday in reminders.rem
 
Hi Everyone, I am a new one here.

I started using remind for my works and appointments. Everything is fine. I love it. Now I am trying set a training on all weekdays from 4th Oct 2021 to 29th Oct 2021 without Saturday and Sunday. I have tested a lot but I am being confused with something. What I have tried is below;
Code:

REM OMIT Sat Sun 4 Oct 2021 THROUGH 29 Oct 2021 MSG Attending Training
It doesn't work. It will set "Attending Training" on all day including Sat Sun.
Code:

REM Mon Tue Wed Thu Fri 4 Oct 2021 THROUGH 29 Oct 2021 MSG Attending Training
Code:

REM OMIT Sat Sun Oct 2021 MSG Attending Training
They also don't work. They will also set "Attending Training" on all day including Sat Sun.
Code:

REM Mon Tue Wed Thu Fri Oct 2021 MSG Attending Training
It skip Sat and Sun but starting from 1st Oct while I want to start 4th Oct 2021.
Thanks in advance.

shruggy 10-04-2021 11:32 AM

Untested
Code:

REM 4 Oct 2021 THROUGH 29 Oct 2021 OMIT Sat Sun SKIP MSG Attending Training

lqmsh 10-05-2021 10:02 AM

Thanks for reply. It is what I am looking for days. Thanks. As English is not my mother language, it is difficult sometime for reading man pages for me. Anyway, I will try...

JeremyBoden 10-05-2021 07:41 PM

Try the cal CLI command.
Code:

cal -m 10

    October 2021     
Su Mo Tu We Th Fr Sa 
                1  2 
 3  4  5  6  7  8  9 
10 11 12 13 14 15 16 
17 18 19 20 21 22 23 
24 25 26 27 28 29 30 
31



All times are GMT -5. The time now is 07:10 PM.