awk , 65 bytes
BEGIN{for(;;){for(;++$++i>9;)$i=0;for(i=NF+1;i;)printf--i?$i:RS}}
Counts up "forever" using the fields as an array. I made sure this works with the standard Ubuntu awk (mawk).
BEGIN{for(;;){for(;++$++i>9;)$i=0;for(i=NF+1;i;)printf--i?$i:RS}}
Counts up "forever" using the fields as an array. I made sure this works with the standard Ubuntu awk (mawk).