fork download
  1. #!/bin/bash
  2.  
  3. awk '{ key=1 }
  4. /-infrastructure-users$/ { key += 10 }
  5. /-credentials-/ { key += 100 }
  6. { print key "\t" $0 }' |
  7. sort -n
Success #stdin #stdout 0.01s 5388KB
stdin
aws-persistence-infrastructure
aws-persistence-users
aws-firewall-infrastructure
aws-network-infrastructure
aws-infrastructure-users
bootstrap-credentials-aws
stdout
1	aws-firewall-infrastructure
1	aws-network-infrastructure
1	aws-persistence-infrastructure
1	aws-persistence-users
11	aws-infrastructure-users
101	bootstrap-credentials-aws