0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

DynamodbでExport to .csvしたcsvファイルをjsonに変換するbash oneliner

Last updated at Posted at 2019-03-15

TARGET_FILE変数にcsvファイルを指定するだけでOKです。
ご査収ください。

# NEED: npmが使用できる環境
TARGET_FILE=target_file.csv; npx csvtojson $TARGET_FILE | sed -E 's/ \((N|S|BOOL|B|M|SS|NS|BS)\)//g' > "${TARGET_FILE//.csv/.json}"
0
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?