Re:Unix Toolbox (2008)
by robmccoll on Friday February 21, 2020 @03:04PM
(#22386223)
I realize this doesn't give you JSON, but if the goal is to retrieve information with little-to-no parsing, /etc/os-release defines everything in environment variable format. You can just source it and then use the environment variables directly for distro info.
[ Parent
| on HN ]
There are no comments on this comment yet.