BEGIN { last = 0; } { current = $2; if (last != 0) { for (i = last + 1; i < current; ++i) print i; } last = current; }