for instruction in bash

for item in $(cat hosts.all); do ssh -q $item 'hostname && uptime'; done