Last active
December 10, 2019 10:14
-
-
Save oguzcan-yavuz/b6aa1b96d398cdf1bb4d417fe5fdc522 to your computer and use it in GitHub Desktop.
mongo document to json
This file contains 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
# You need to copy the document to the clipboard before running this. The result will be copied to the clipboard. | |
pbpaste | perl -ne "s/(.*)( \w+\()(.*)(\))(.*)/\1\3\5/g; print;" | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment