From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Oliver_Ve=C4=8Dern=C3=ADk?= Subject: Re: filter included files Date: Sat, 11 May 2013 18:12:23 +0200 Message-ID: <87txm9bimw.fsf@kerstf.org> References: <518DDD83.8020404@vecernik.at> <87y5blbkmd.fsf@kerstf.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbCPV-0001JH-D1 for emacs-orgmode@gnu.org; Sat, 11 May 2013 12:12:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbCPT-0002Wl-Uj for emacs-orgmode@gnu.org; Sat, 11 May 2013 12:12:37 -0400 Received: from plane.gmane.org ([80.91.229.3]:39954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbCPT-0002WR-Nt for emacs-orgmode@gnu.org; Sat, 11 May 2013 12:12:35 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UbCPS-0000VB-CO for emacs-orgmode@gnu.org; Sat, 11 May 2013 18:12:34 +0200 Received: from 77.116.140.100.wireless.dyn.drei.com ([77.116.140.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 May 2013 18:12:34 +0200 Received: from ov by 77.116.140.100.wireless.dyn.drei.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 May 2013 18:12:34 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org > 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 cat /etc/iptables/iptables.rules | sed 's/pattern/string/' > #+END_SRC oops, useless use of cat: #+BEGIN_SRC sh :exports results :results output ssh sed 's/pattern/string/' /etc/iptables/iptables.rules #+END_SRC