Skip to content

Instantly share code, notes, and snippets.

View theasta's full-sized avatar

Alexandrine Boissière theasta

View GitHub Profile
@robbeman
robbeman / mongo_import.sh
Last active November 29, 2019 07:34
Mongo import shell script
#!/usr/bin/env bash
# Import collections in a specified folder to your mongo database
# requires 2 arguments
# 1) the database to import to
# 2) the folder containing the collections to import
# example usage
# sh mongo_import.sh dev ~/Documents/PROJECTS/example/mongo\ export
if [ -z ${1+x} ] || [ -z ${2+x} ]; then