for i in `seq 1 30`; do \ echo -e "\nhost$i\n===========\n"; \ ssh host$i 'ln -s /some/path /path/to/link && ls -l /path/to/link'; \ done
for i in `seq 1 30` do commands more commands done
Good point about not needing semicolons for multiple-line stuff (assuming the EOL's are not escaped, as you have it in your example). I blame the PHP I spent all week immersed in...bleh.
for i in {1..30}; do...