Shell
How can I write a shell script, using only shell features (and the date command), to output the number of minutes that have elapsed in the current day?
Shell How can I write a shell script, using only shell features (and the date command), to output the number of minutes that have elapsed in the current day? |
|||
|
Since
If your shell does not support arithmetic, you could use an external calculator such as
or
|
||||
|
GNU
|
|||
|
how do I subtract the number of minutes passed in the day from the number of minutes left in the day (i.e., 1440)? So basically I want to subtract the output of the above from 1440. |
|||||
|