See http://orgmode.org/manual/tangle_002dmode.html#tangle_002dmodeIt should do what you need.
On Friday, July 29, 2016, Xebar Saram <zeltakc@gmail.com> wrote:Hi alli have officaly moved over to manage all my dotfiles with orgmode based on this excellent post:one thing im missing is how to make some of these tangled sh files executable after i tangle them (like running chmod +x).any ideas?bestZ
--John
-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803