#!/bin/csh

split -l 15 tosplit.csv filesplit

rm done/*

foreach i (`ls filesplit*`)
    cat header |todos >! done/$i'.csv'
    cat $i |todos >> done/$i'.csv'
    rm $i
end
