It is easy to get the two additional columns you asked for. With two additional loops: $ tr -sc 0-9\\n ' ' < hostname_list | awk '{ k = 0; for (i = 0; k < 4 && ++i i; --k) printf $k "."; printf $k "\t"; while (++k

Reply via email to