TIL: Reorder columns, print the last with `awk`

awk is a whole programming language, but 90% of what I use it for is printing a subset of columns. This is pretty much covered by cut with two exceptions: re-ordering columns and printing the last column. Both cut and awk call columns “fields”. Here’s some sample tab-separated data (formatted with column -t !): FirstName LastName FavoriteColor Pet Elena Kowalski yellow hamster Marcus Rivera green…