source: trunk/freskein/freskein @ 440

Last change on this file since 440 was 440, checked in by g7moreau, 4 years ago
  • Add script to kept file not executable not executable (remove UNIX right)
File size: 550 bytes
Line 
1#!/bin/bash
2#
3# 2019/12/19 Gabriel Moreau
4
5set -e
6
7
8find . -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
15exit
16
17
18
19freskein - freshly washed folder
20
21freskein is the concatenation of the two brittany word fresk and kein.
Note: See TracBrowser for help on using the repository browser.