Skip to content

Instantly share code, notes, and snippets.

@joshcass
Created May 29, 2020 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshcass/4a485e2b395367e6357ac93f3c5ce2d1 to your computer and use it in GitHub Desktop.
Save joshcass/4a485e2b395367e6357ac93f3c5ce2d1 to your computer and use it in GitHub Desktop.
Shell script example
FILES=/tmp/collections/*
for f in $FILES; do
mongoimport --db "database_name" --file $f
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment