print files in groups