#!/bin/bash

source $(dirname $0)/00-config
WORKDATADIR=$WORKDATADIR/01
mkdir -p $WORKDATADIR

for sourcefile in $SRCDATADIR/{01..11}-*; do
        cat $sourcefile |sed 's/\(\#.*\|\)//g' | sed '/^$/d' | sed -z 's/\.\n/, /g' | sed 's/, $/\n/' > $WORKDATADIR/$(basename $sourcefile)
done
