Script to concatenate ctm data files