From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer@krugs.de (Rainer M. Krug) Subject: Importing all files into .org document source blocks Date: Fri, 24 May 2013 14:03:44 +0200 Message-ID: <87y5b47ffj.fsf@krugs.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufqj8-0004Sy-MV for emacs-orgmode@gnu.org; Fri, 24 May 2013 08:04:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ufqj6-0000nC-UP for emacs-orgmode@gnu.org; Fri, 24 May 2013 08:04:06 -0400 Received: from plane.gmane.org ([80.91.229.3]:49365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufqj6-0000mD-Mp for emacs-orgmode@gnu.org; Fri, 24 May 2013 08:04:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ufqj3-0007pD-SZ for emacs-orgmode@gnu.org; Fri, 24 May 2013 14:04:01 +0200 Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 May 2013 14:04:01 +0200 Received: from Rainer by arn78-1-88-186-171-7.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 May 2013 14:04:01 +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 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi I would like to import all files in a directory into an org document, and each file should be in one source block, so that tangling the document, will result in all files created. My reasoning: I am using org-mode to keep track of installations on my machine (apt-get as well as other installs) to make it easier to re-install a new version of the Linux when necessary. Now apart from the installation commands, I also have to keep track of the installation sources. I was thinking of having them in the document, where each source (i.e. each file in /etc/apt/sources.list.d/.) has it's own source block, so that I can easily change the Ubuntu version and tangle the document to obtain the new sources.=20 Now I am lazy, and adding each file manually is prone to errors (i.e. forgetting one). Therefore my question: Is there a way of importing all files in a directory (/etc/apt/sources/list.d/) into an org document, with each being in a separate code block? Thanks, Rainer =2D-=20 Rainer M. Krug --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJRn1chAAoJENvXNx4PUvmC5UgIAIZxb8zgooav7watvewdycue yZn5nsNPTh84w8UzSmOS9dSng4IJ4KuDNI0NxYuEfx8i6nTwLg/Fl9yHdo8qY0LM LhoGiKpTBLqEfWbr+Yp+MAbuDYnsCykeFQMgbggQHn6qxAisEjGstc48XGhDyFiB 0EKd0RD7yVfucPaoCyOxWMs7xxN1Qy0GIGdhvmD/7/ol84bknZZ2u5j+2AFfTfmj so9xuXHY1HukGeKqcGFWMWubDZW4469hBbGhIcVL/cg5zuaWz7IR2Z7nSYReqyZK g23xQWV6huvK9FBfh85yfu0ziP/dDGBG0pshFd7g87CPnnfggEjV3C8yfXfnNSI= =qaxr -----END PGP SIGNATURE----- --=-=-=--