📅  最后修改于: 2022-03-11 14:49:36.889000             🧑  作者: Mango
# Example usage:
awk '{t=$1; $1=$2; $2=t; print;}' input_file # Swap column 1 and column 2
# This assigns column 1 to a dummy variable t, makes column 1 equal
# to column 2, and then assigns the contents of t to column 2