Shell script per function. Time to generate trees