-
-
Save wwymak/73dc2240c3c60eb9a53539cf429860b7 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