RosettaCodeData/Task/Count-in-octal/Sed/count-in-octal.sed
2023-07-01 13:44:08 -04:00

9 lines
68 B
Sed

:l
p
s/^7*$/0&/
h
y/01234567/12345670/
x
G
s/.7*\n.*\([^0]\)/\1/
bl