Skip to content

Instantly share code, notes, and snippets.

@nagarajasr
Created August 14, 2018 06:07
Show Gist options
  • Save nagarajasr/6b9a51a115683512e3f11225a76e1a63 to your computer and use it in GitHub Desktop.
Save nagarajasr/6b9a51a115683512e3f11225a76e1a63 to your computer and use it in GitHub Desktop.
ARGS=`some command | sed -e 's/"/\\"/g'` # expecting to replace " with \", doesn't work. instead use:
ARGS=$(some command | sed -e 's/"/\\"/g')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment