-
-
Save AdrianLsk/7710b1a9532352c0a4597ea63ec0ef22 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