[systemd-devel] Regex parsable output of systemctl
Thomas Güttler
guettliml at thomas-guettler.de
Tue Dec 18 08:59:52 UTC 2018
Hi,
to get a regex parsable output of systemctl, I use this up to now:
systemctl list-units --full --all --plain --no-legend
This is a lot of typing.
AFAIK there is no way to make it shorter (maybe use -a instead of --all).
Maybe I am blind and there is already a switch which makes the output
of systemctl easy to parse in scripts.
If there is no such switch up to now, then it would be very nice if
it could be added.
What do you think?
Regards,
Thomas Güttler
--
Thomas Guettler http://www.thomas-guettler.de/
I am looking for feedback: https://github.com/guettli/programming-guidelines
More information about the systemd-devel
mailing list