Bash loops
From Tech-Wiki
Revision as of 19:24, 13 February 2017 by Fabricio.Lima (Talk | contribs)
Executing a Do loop to repeat one command with different hosts
# for n in {1..5}; do ssh host0$n "shutdown"; done
Executing the same command forever
# while true; do date +%s; done