iworld s/^/00000/ : h y/012/120/ G s/^.*\([^0]0*\)\n\(.*\)[^2]2*$/\2\1/ h s/^0*// s/0/world /g s/1/hello /g s/2/world! /g s/ $//p g /10200/!t d