g/^/a\
  append1\
  append2\
.\
s/[0-9]/2342/
.=
1,$p
.=
u
.=
1,$p
u
.=
w
