Last active
July 14, 2018 19:21
-
-
Save gwsu2008/db58adba672961c3eeccc9294099f570 to your computer and use it in GitHub Desktop.
AWS command tips
This file contains hidden or 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
awk '{sub($1 FS,"" );print}' => remove 1st field and take the remaining. | |
awk '{print $NF}' => return last field | |
awk '{print ( $(NF-1) )}' => return 2nd to last field |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment