Guest User

Untitled

a guest
Dec 18th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. subnets='10.100.12 10.100.13 10.100.14'
  4.  
  5. for subnet in $subnets ;do
  6. echo "===== custom aws resolver ===="
  7. for i in $(seq 1 254);do
  8. echo "${subnet}.${i} ip-$(echo ${subnet}|awk -F'.' '{print $1}')-$(echo ${subnet}|awk -F'.' '{print $2}')-$(echo ${subnet}|awk -F'.' '{print $3}')-${i}.ec2.internal"
  9. done
  10. done
Add Comment
Please, Sign In to add comment