> To answer my own question, I still don't know if this is 'best
> practice', but this worked for me quite well:
>
> #+BEGIN_SRC sh :exports results :results output
> ssh <host> cat /etc/iptables/iptables.rules | sed 's/pattern/string/'
> #+END_SRC

oops, useless use of cat:

#+BEGIN_SRC sh :exports results :results output
ssh <host> sed 's/pattern/string/' /etc/iptables/iptables.rules
#+END_SRC


Reply via email to