Magic Banana checked my homework:
> It works here (hostname_list contains the first column of your
spreadsheet):
... [selecting the last three rows]
>
abts-tn-dynamic-70.160.49.171.airtelbroadband.in 70.160.49.171 171.49.160.70 160.49.171.70
>
customer-static-201-216-208.145.iplannetworks.net 201.216.208.145 145.208.216.201 216.208.145.201
>
static-mum-182.59.70.225.mtnl.net.in 182.59.70.225 225.70.59.182 59.70.225.182
....................................... Task: pick one of the each of the
three choices above ........
Truncating each of the three search methods to avoid mis-aimed grep's:
(1) time tr -sc 0-9\\n ' ' < CPV-ThreeNone.txt | awk '{ k = 0; for (i = 0; k
< 4 && ++i