Search This Blog

awk: re-order columns using printf

echo 1.txt | awk 'BEGIN{FS="\t"} {printf "%s\t%s\n", $2, $1}'

No comments:

Post a Comment