Hi Rainer,

Rainer M. Krug writes:
> 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?

Maybe this?:

for i in `find . -maxdepth 1 -type f`; do
 echo "#+BEGIN_SRC :tangle /this/dir/${i}" >> afile.org
 cat "${i}" >> afile.org
 echo "#+END_SRC\n" >> afile.org
done

(this kind of reply is becoming a theme of mine)

Myles


Reply via email to