Created
March 15, 2015 09:33
-
-
Save fabien0102/88dcaa184d801fd5e67a to your computer and use it in GitHub Desktop.
Import multiple json files into mongoDB
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
ls -1 *.json | while read jsonfile; do mongoimport -d support -c logs -file $jsonfile --jsonArray -type json; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to execute script in windows machine?? As in command prompt linux command will not work
@fabien0102