add option to remove input files in concatenation and sorting