I am trying to move 7th column of my csv file to the end by using
awk -F '{print $1,$2,$3,$4,$5,$6,$8,$9,$10,$11,$7}',OFS= "$file"
where $file is a .csv file in a directory. However, the output is
awk: ^ syntax error
Does anyone know how to fix this error?
^
indicates the specific part of the command where the error was encountered. – terdon Jul 05 '16 at 13:19