1,$s/foo/test/gp
w
