#!/bin/sh for I in `grep -v "\#" /etc/machines.list`; do echo -n "$I " ; ssh $I "$@" done