mongo db version 3.2.5
匯入 csv 檔案
mongoimport --host hello111 -db test -c t8 --type csv --headerline < ~/t8.csv
匯出 為 csv
mongoexport --host rdlinux114 --db test -c t8 --type json --jsonArray > _8.json
in2csv _8.json > o.csv
Reference
https://gist.github.com/mderazon/8201991
http://thedatafugee.blogspot.tw/2013/10/mongodb-export-to-jsoncsv.html