Skip to content

Instantly share code, notes, and snippets.

@chris-w-jarvis
Last active January 15, 2021 17:55
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 chris-w-jarvis/01ec0a28a03e555298ac58099893b2e3 to your computer and use it in GitHub Desktop.
Save chris-w-jarvis/01ec0a28a03e555298ac58099893b2e3 to your computer and use it in GitHub Desktop.
convert a shell command to exec form for docker CMD

echo "<COMMAND TO TRANSLATE WITH $'s ESCAPED>" | sed 's/ /","/g' this will replace each inner space with ","

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment