See http://orgmode.org/manual/tangle_002dmode.html#tangle_002dmode

It should do what you need. 

On Friday, July 29, 2016, Xebar Saram <zeltakc@gmail.com> wrote:
Hi all

i have officaly moved over to manage all my dotfiles with orgmode based on this excellent post:
https://expoundite.net/guides/dotfile-management

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?

best

Z




--
John

-----------------------------------
Professor John Kitchin 
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu