I'd like to write a program that takes the current time (hh:mm) in the shell script and branches conditions between 12:00 and 13:00 in the if statement.
In this case,
If this is the case, the format of the date type is incorrect and does not work, so please let me know if there is a correct format or better way to write it.shellscript
This response is based on comments from metropolis.
If it doesn't include 13:00
I wonder if it's okay.
You can compare it as a number if you do not include : in the time.
© 2022 OneMinuteCode. All rights reserved.