$ rc-config list default Init scripts to be started by runlevel default cpufrequtils mdraid named this output is needlessly indented with spaces, and has a first line that gets in the way of automated parsing. It'd be nice to have a simplified output that has no random spaces (tabs for indentation) and is left-aligned so that automation tools can easily parse the output. ( --column ?) Additionally an 'exists' verb might be very useful: rc-config exists iptables
>--column ? --brief is used in other gentoo tools, like eselect
Looks like rc-config is only a symlink to eselect, so the --brief option is there for rc-config too. The difference between the two outputs seems to only be the lack of "Available init scripts" header in the brief version. Maybe it can be extended to also format the output in a bit more machine-friendly way.
(In reply to Ferenc Erki from comment #2) > The difference between the two outputs seems to only be the lack of > "Available init scripts" header in the brief version. Maybe it can be > extended to also format the output in a bit more machine-friendly way. It could definitely be improved. There's another command: eselect --brief news list whose output needs parsing to be used in an external script. I've been working on adding unicode support to eselect, I'd be happy to help.
rc-config is not part of OpenRC; fixing assignee.
As was noted previously, use the --brief option to suppress unnecessary output.