Last change
on this file since 441 was
440,
checked in by g7moreau, 5 years ago
|
- Add script to kept file not executable not executable (remove UNIX right)
|
File size:
550 bytes
|
Rev | Line | |
---|
[440] | 1 | #!/bin/bash |
---|
| 2 | # |
---|
| 3 | # 2019/12/19 Gabriel Moreau |
---|
| 4 | |
---|
| 5 | set -e |
---|
| 6 | |
---|
| 7 | |
---|
| 8 | find . -type f -a -perm /0100 -exec file --print0 {} \+ \ |
---|
| 9 | | egrep -v -a --null '(executable|ELF .* LSB shared object, .* dynamically linked, interpreter /lib)' \ |
---|
| 10 | | cut -f 1 -d '' --output-delimiter='\n' \ |
---|
| 11 | | while read filename |
---|
| 12 | do |
---|
| 13 | [ -f "${filename}" ] && chmod a-x "${filename}" |
---|
| 14 | done |
---|
| 15 | exit |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | freskein - freshly washed folder |
---|
| 20 | |
---|
| 21 | freskein is the concatenation of the two brittany word fresk and kein. |
---|
Note: See
TracBrowser
for help on using the repository browser.