#!/bin/bash for service in `journalctl -b | grep quick | grep "\.service" | cut -d ' ' -f 6 | cut -d ':' -f 1 | sort | uniq`; do systemctl status $service; done > reason.txt