#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
find . -name '*.ground' | shuf | nice parallel -q --eta -I foo bash -c 'F=$(dirname foo)/$(basename foo .ground); echo $F; python3 '"$SCRIPT_DIR"'/gen-training.py $F{.ground,,.csv}' |