Quickly regroup stuff in a csv file