If you have a multiple-column ASCII file holding some data, where the columns are separated by whitespace (tabs and/or spaces), this command will extract the first two columns and flip them:
awk '{print $2"\t"$1}' inputfile > outputfile
where inputfile
is the name of the file holding the original data, and outputfile stands
for the file holding the first two columns in reverse order, separated by tab characters.