#!/bin/sh for s in $(find . -type f -regex ".*\.\(sh\|py\)"); do [ -x $s ] && continue echo "fixing permissions for $s..." chmod +x $s done