split Casegenerate.sh file into four small files