Skip to content

Instantly share code, notes, and snippets.

@guileen
Created June 30, 2015 02:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guileen/9d3bdae971f6dea9326d to your computer and use it in GitHub Desktop.
Save guileen/9d3bdae971f6dea9326d to your computer and use it in GitHub Desktop.
Shell Programming Practice
#!/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