New answers tagged

1

I had to run dos2unix on all the infiles and everything worked fine after that.


1

First, make sure you are using spaces and not tabs in the input file. Then, try separating the variables by commas, like this: awk '{print $2,$3,$1}' infile.xyz > output.xyz If you place the variables side by side, like in $2 $3 $1, awk concatenates them. Also, you may want to try the printf function, as it provides better formatting capabilities. ...



Top 50 recent answers are included