Skip to content

Instantly share code, notes, and snippets.

@jstanley23
Created April 17, 2019 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jstanley23/160d982b49af53fab96c18ef551c18c9 to your computer and use it in GitHub Desktop.
Save jstanley23/160d982b49af53fab96c18ef551c18c9 to your computer and use it in GitHub Desktop.
Export all Control Center configs to files
IFS=$'\n'; for x in $(serviced service list --show-fields=Name,ServiceID | grep -v 'ServiceID'); do IFS=" "; s=($x); serviced service list ${s[1]} > /tmp/${s[0]}.json; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment