<a-|>sed -n "s/foo/bar/; P" > out<ret>:e! out<ret>