#!/bin/bash

while read -r line ; do
	echo "Fixing dump in $line ..."
	sed -i '2,17d' "$line"/edgefile_sorted.tsv
	sed -i -n -e :a -e '1,8!{P;N;D;};N;ba' "$line"/edgefile_sorted.tsv
done < dumps_to_fix.txt
