view scripts/search/populate-users @ 12:c2e2d794847f

new: add config.properties file for gazetteer
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Wed, 30 Sep 2015 13:43:54 +0200
parents a50cf11e5178
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