On 20/04/2017 11:43, Felipe Salvador wrote:
$ find ~/ -type f -executable -name "*.html" -o -name "*.cfg" -o -name "*.xml" -o -name "*.txt" -exec chmod -x {} \; Si suppone che in questo modo i permessi di ogni file trovato vengano modificati e in effetti così pare essere, se non fosse che, rilanciando: $ find ~/ -type f -executable -name "*.html" -o -name "*.cfg" -o -name "*.xml" -o -name "*.txt" la lista dei files trovati appare invariata.
$ mkdir /tmp/1 $ cd /tmp/1 $ touch a.txt $ touch a.html $ ls -l totale 0 -rw-r--r-- 1 davide davide 0 apr 20 20:28 a.html -rw-r--r-- 1 davide davide 0 apr 20 20:28 a.txt $ find /tmp/1 -type f -executable -name "*.html" -o -name "*.txt" /tmp/1/a.txt $ find /tmp/1 -type f -executable -name "*.html" \ -o -type f -executable -name "*.txt" $ Ciao Davide -- Dizionari: http://linguistico.sourceforge.net/wiki What happened in 2013 couldn't have happened without free software(He credited free software for his ability to help disclose the U.S. government's far-reaching surveillance projects).
Edward Snowden