<a-|>sed -n "s/foo/bar/; P" > tmpfile<ret><a-!>cat tmpfile<ret>