-
Set operations in Unix Shell: http://www.catonmat.net/blog/set-operations-in-unix-shell-simplified/
- SSH into set of hosts and, if host is alive, execute background job:
for h in host1 host2 host3; do ssh $h echo 1 > /dev/null 2>&1; if [ $? != 0 ]; then continue; fi; # proceed if host alive ssh -f $h 'sh -c "nohup /path/to/script.sh arg1 arg2 arg3 2>&1 &" > /dev/null 2>&1'; done
- Quick VIM tutorial: http://www.openvim.com/tutorial.html