Created
January 29, 2019 11:42
-
-
Save miguelmota/a0d37934c689f9ad000d01306905868c to your computer and use it in GitHub Desktop.
Bash sed escape double quotes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ echo '{"foo":"bar"}'| sed s/\"/'\\\"'/g | |
# {\"foo\":\"bar\"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment