Browse Source

create_datas

prieto 8 years ago
parent
commit
9a38e50fb5
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      progs/create_datas.sh

+ 1
- 0
progs/create_datas.sh View File

@@ -55,6 +55,7 @@ done
55 55
 for i in `eval echo {1..$N}`;
56 56
 do
57 57
     persons=$(printf "use lodel2_$instance\n db.Person.find({}, {lodel_id:1, _id:0}).limit(3)" | mongo  $HOSTDB/admin -u lodel2_admin -p lapwd  | sed "1,3d" | sed -e "s/{ \"lodel_id\" : //g" | sed -e "s/ }//g" | sed "\$d")
58
+    tmp=""
58 59
     for i in $persons
59 60
     do
60 61
         if [[ ! -z $tmp ]]

Loading…
Cancel
Save