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