Guest User

Untitled

a guest
Jul 20th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. str1=c0001.test.cloud.com,c0002.test.cloud.com,c0003.test.cloud.com
  2. string="$( cut -d ',' -f 2- <<< "$str1" )"
  3. echo "$string"
  4. for j in $(echo $string | sed "s/,/ /g") do ssh appAccount@j done
Add Comment
Please, Sign In to add comment