Условия микширования в таймере Linux

Вот почему в awk есть "режим абзаца", все, что вам нужно, это:

$ awk -v RS= -F'\n' '/failed to get drive stats/{print $2}' file
Drive name:  id1,sd@n5000cca8749
Drive name:  id1,sd@n5000cca4607
0
23.10.2020, 10:57
1 ответ

поsystemd.timer:

Multiple directives may be combined of the same and of different types, in which case the timer unit will trigger whenever any of the specified timer expressions elapse. For example, by combining OnBootSec= and OnUnitActiveSec=, it is possible to define a timer that elapses in regular intervals and activates a specific service each time. Moreover, both monotonic time expressions and OnCalendar= calendar expressions may be combined in the same timer unit.

Спецификация «любой» предполагает, что это отношение «ИЛИ».

0
18.03.2021, 22:56

Теги

Похожие вопросы