Just a quick question here. I'm trying to format the output of the command:
so that it puts each domain on a new line, so I can use that parsed output in a different command.
defaults domains | sed 's/,/\n/g'
Which should take the output of default, find each comma, and replace with a new line correct? Instead it just removes the comma and keeps each item on the same line.
I thought, maybe it's something with the encoding of the dafaults command output, so I dumped to a file and tried parsing that, but no dice.
Anyone have any idea how I can achieve this?