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