#!/bin/bash code="s;[0-9]|$;0&;;`seq 0 9 | sed -nE 'x;G;s;(.+)\n(.+);s,x\1,\2,\;;p'`" echo x | (sed -u 'h;:s;n;x;G;s;\n;;;bs' | tee /dev/stderr) 2>&0 \ | sed -uE ":s;s;x{10};y;g;$code;y;y;x;;/x/bs"
Standard input is empty
1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393