anna on Nostr: i know systemd is not a fan of the whole unix philosophy thing but, does systemctl ...
i know systemd is not a fan of the whole unix philosophy thing but, does systemctl list-units really not have any way to output something that is pipe friendly?
it seems to always print a header with column names and a footer with “N units listed”
making the simple job of “list-units | grep | xargs <something else>” a lot more annoying
Published at
2025-01-02 21:45:07Event JSON
{
"id": "3c32e2036815185808093d87ba6ee1ea9531ea2f92a65a2bcb41b592585074c5",
"pubkey": "4ebc018b65a1b352f90f937be79b5c338651f1528960889fa64caa94be982f8a",
"created_at": 1735854307,
"kind": 1,
"tags": [
[
"proxy",
"https://social.vlhl.dev/objects/c89b7b91-66da-43f1-9ae3-d3f24b05a6db",
"activitypub"
]
],
"content": "i know systemd is not a fan of the whole unix philosophy thing but, does systemctl list-units really not have any way to output something that is pipe friendly?\n\nit seems to always print a header with column names and a footer with “N units listed”\n\nmaking the simple job of “list-units | grep | xargs \u003csomething else\u003e” a lot more annoying",
"sig": "99e6792e251e0e0e9b614333010441253d5f389d0e18078f72b11d3ba59affb559ae5c783cf59419d136544aec2a9185fe7fee372c141cd007f9702cb48610b4"
}