Created
November 3, 2014 00:15
-
-
Save joec4i/153fd69e13731bd8d4a0 to your computer and use it in GitHub Desktop.
Move the last column to the head of each line with awk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat devices.txt | awk '{lc=$NF; $NF=""; print lc"\t"$0}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment