My Tech Notes
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
‹
›
Home
View web version
No comments:
Post a Comment