#!/bin/bash
cat reference | sort > out/r
for i in `seq 10` ; do
  cat out/$i.* | sort > out/$i
  echo diffing $i:
  diff -q out/$i out/r
done
