How do I write a sed invocation to output only lines containing only numbers consisting of a repeated single digit (and containing at least two digits).
Example:
seq 1000 | sed ...
For which the output should be:
11
22
33
44
55
66
77
88
99
111
222
333
444
555
666
777
888
999
if sed is your favorite, here you go: