Skip to content

Instantly share code, notes, and snippets.

@tanish-kr
Last active August 29, 2015 14:14
Show Gist options
  • Save tanish-kr/2f2f34e4e80711016867 to your computer and use it in GitHub Desktop.
Save tanish-kr/2f2f34e4e80711016867 to your computer and use it in GitHub Desktop.
DynamoDB エクスポートファイルをJSONファイルに置換 ref: http://qiita.com/tatsu_nishiki/items/2c9f2c31fcdd974922f1
hoge^C{"s":"hogehoge"}^Bfoo^C{"s":"fooou"}
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