4 ms·
You probably already know this, but if you have a significant number of hosts: for i in `seq 1 30`; do \ echo -e "\nhost$i\n===========\n"; \
by veritgo 16y ago
You probably already know this, but if you have a significant number of hosts:
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
Also, if you just start typing
for i in `seq 1 30`
do
commands
more commands
done
On the command line itself, you don't need to worry about semicolons. Bash will take care of it.