#!/usr/bin/env bash for x in **/corpus.jsonl; do cat $x | jq -sc > $(dirname $x)/$(basename $x .jsonl).json; done