awk

Swap first two columns in a csv file

awk -F, '{print $2,$1}' OFS=, infile > outfile