#!/bin/bash
#
# 2019/12/19 Gabriel Moreau

set -e


find . -type f -a -perm /0100 -exec file --print0 {} \+ \
               | egrep -v -a --null '(executable|ELF .* LSB shared object, .* dynamically linked, interpreter /lib)' \
               | cut -f 1 -d '' --output-delimiter='\n' \
               | while read filename
                  do
                     [ -f "${filename}" ] && chmod a-x "${filename}"
                  done
exit



freskein - freshly washed folder

freskein is the concatenation of the two brittany word fresk and kein.
