Last active
August 29, 2015 14:14
-
-
Save tanish-kr/2f2f34e4e80711016867 to your computer and use it in GitHub Desktop.
DynamoDB エクスポートファイルをJSONファイルに置換 ref: http://qiita.com/tatsu_nishiki/items/2c9f2c31fcdd974922f1
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
hoge^C{"s":"hogehoge"}^Bfoo^C{"s":"fooou"} |
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
sed -e 's/$/}/' -e $'s/\x02/,"/g' -e $'s/\x03/":/g' -e 's/^/{"/' <exported_table> > <exported_table>.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment