1g/^/a\2 append1\3 append2\4.\5s/[0-9]/2342/6.=71,$p8.=9u10.=111,$p12u13.=14w
An extensible POSIX-compatible implementation of the ed(1) text editor
git clone https://git.8pit.net/edward.git
1g/^/a\2 append1\3 append2\4.\5s/[0-9]/2342/6.=71,$p8.=9u10.=111,$p12u13.=14w