Wednesday, 3 July 2013

bash: funky hostname expansion in for loop


  1. for host in myhosts-{2{2,{6..9}},3{2,5,{7..9}}}.mydomain.com
    1. do 
      1. echo $host
      2. echo "ssh $host cmd"
  2. done

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Interview questions: 2020-12

Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...