Mercurial > hg > LGDataverses
view scripts/search/populate-users @ 10:a50cf11e5178
Rewrite LGDataverse completely upgrading to dataverse4.0
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 08 Sep 2015 17:00:21 +0200 |
parents | |
children |
line wrap: on
line source
#!/bin/bash BASEDIR='scripts/search' USERDIR='data/in/users' FULL_USERDIR="$BASEDIR/$USERDIR" rm -rf $FULL_USERDIR mkdir -p $FULL_USERDIR cd $BASEDIR count=1; ./tab2json-users users.tsv | while read i; do echo $i | python -m json.tool > $USERDIR/$count; let count++; done