Created
May 5, 2017 12:25
-
-
Save kingster/8184ce525d78bf732809c9eeb47651d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cluster="$1" | |
file=$(mktemp --tmpdir -t "$cluster.XXXXXXXXXXXX") | |
grep "$cluster" /etc/hosts| cut -d ' ' -f 1 > $file | |
pdsh -w "^$file" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment