#!/bin/sh # Status of a systemd timer systemctl status systemd-tmpfiles-clean.timer | sed -n 's/.*Active: [^(]*(\([^)]*\)).*; \(.* ago\)/\1 (\2)/p'