IN=$1
OUT=$2

mkdir -p $2/

for dir in $(find $1 -mindepth 1 -type d); do
	echo $dir
	find $dir -type f -name "*.bz2" -exec lbzcat {} \; \
	| grep 'https://global.dbpedia.org/id/2wvzs' \
	| lbzip2 \
	> $2/$(basename $dir)
done
