Monday, October 26, 2015

Simple bash script to import data into MongoDB

import-data.sh file:
#! /bin/bash
_dfiles=/Users/computer/Downloads/NYSE/*.csv
for f in $_dfiles
do
mongoimport --type csv -d db -c nyse --headline --file ${f} --jsonArray

done 

1 comment:

  1. Interesting blog about simple bash script to importt data which attracted me more.Spend a worthful time.keep updating more.
    Digital marketing company in Chennai

    ReplyDelete