Can't parse output from defaults domains command in macOS #1599
-
Dumb question, but why does this command return nothing, am I doing something wrong? defaults domains | mlr --csv --opprint cat I've verified tha defaults domains | awk -F, '{for(i=1; i<=NF; i++) print $i}' |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Could you share a sample raw output of the |
Beta Was this translation helpful? Give feedback.
-
@thesobercoder the output of There is #314 open to address this. However, I suspect that CSV-with-header is not what you want here. You might use Some examples:
|
Beta Was this translation helpful? Give feedback.
@thesobercoder the output of
defaults domains
is indeed comma-separated, but, with only one line. In CSV this means the header line, and no data. That in turn means zero records.There is #314 open to address this.
However, I suspect that CSV-with-header is not what you want here.
You might use
mlr --csv --headerless-input
(keystroke-saver:mlr -c --hi
)Some examples: