Created
March 16, 2018 09:21
-
-
Save sunnyone/0601eb25b461b454918eb57c2b4a7fb4 to your computer and use it in GitHub Desktop.
Sort IAM permissions (like https://docs.aws.amazon.com/ja_jp/IAM/latest/UserGuide/list_iam.html)
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
cat iamlist4.txt | perl -pne 's/(.*?:[A-Z][a-z]*)(.*)/$2 $1$2/' | sort | awk '{print $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment