From 7ec5b97f9ab604ea7a08224f1bb663b3ef4fb04d Mon Sep 17 00:00:00 2001 From: Gerald Bauer Date: Tue, 28 Mar 2017 16:45:17 +0200 Subject: [PATCH] Update MONGO.md --- MONGO.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/MONGO.md b/MONGO.md index 0ffa71dc..1679f59d 100644 --- a/MONGO.md +++ b/MONGO.md @@ -1,8 +1,8 @@ # Mongo -Import [#import] -Query Examples[#query-examples] +[Import](#import) • +[Query Examples](#query-examples) ## Import @@ -19,18 +19,18 @@ To import all documents use a shell script. Example `import.sh`: ``` bash #!/bin/bash -MONGOIMPORT=mongoimport -SOURCE =. # assume working folder (as root) +MONGOIMPORT = mongoimport +SOURCE = . # assume working folder (as root) function import { - echo " importing >${1}<..." + echo " importing >${1}<..." ${MONGOIMPORT} --db world --collection factbook --file ${1} } function import_region { for file in ${SOURCE}/$1/*.json do - import ${file} + import ${file} done }