Created
June 30, 2015 02:57
-
-
Save guileen/9d3bdae971f6dea9326d to your computer and use it in GitHub Desktop.
Shell Programming Practice
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/sh | |
# pass args to stdin | |
for ((i=1;i<=100;i++)); do ssh 10.1.0.$i 'echo -e "linuxpassword\nlinuxpassword" | passwd linuxuser'; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment