#!/bin/sh set -x for addr in $(seq 1 8); do ip=2001:db8:42::$addr echo "Next to ping: ${ip}" read dummy ping6 -c1 "$ip" done