Skip to content

Instantly share code, notes, and snippets.

@robustdj
Created November 8, 2010 06:19
Show Gist options
  • Save robustdj/667429 to your computer and use it in GitHub Desktop.
Save robustdj/667429 to your computer and use it in GitHub Desktop.
for loop in shell
for i in 1 2 3 4 5 6 7 8; do echo "search$i"; ssh root@search$i 'ls -alhrt /ip/sphinx_index/production'; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment