Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- str1=c0001.test.cloud.com,c0002.test.cloud.com,c0003.test.cloud.com
- string="$( cut -d ',' -f 2- <<< "$str1" )"
- echo "$string"
- for j in $(echo $string | sed "s/,/ /g") do ssh appAccount@j done
Add Comment
Please, Sign In to add comment