Hello,
I found on the forum a lot of question about the find command to exclude some folders... but I could not resolve my problem:
I start a script from /
This script should delete all files older than XX in a particular folder recursively. There only one folder and all it subfolder which shoud not be concerned by the find command:
find /PRODUCTION/PHAR \( -name "*" -mtime +64 \) -o \( -type d ! -name /PRODUCTION/PHAR/Sources -prune \)
This command return no files..
I tried this one too:
find /PRODUCTION/PHAR \( -name "*" -mtime +64 \) -o \( -type d ! -name /PRODUCTION/PHAR/Sources \)
This one return all the files (Sources is not exclude.)
Thanks in advance !
I found on the forum a lot of question about the find command to exclude some folders... but I could not resolve my problem:
I start a script from /
This script should delete all files older than XX in a particular folder recursively. There only one folder and all it subfolder which shoud not be concerned by the find command:
find /PRODUCTION/PHAR \( -name "*" -mtime +64 \) -o \( -type d ! -name /PRODUCTION/PHAR/Sources -prune \)
This command return no files..
I tried this one too:
find /PRODUCTION/PHAR \( -name "*" -mtime +64 \) -o \( -type d ! -name /PRODUCTION/PHAR/Sources \)
This one return all the files (Sources is not exclude.)
Thanks in advance !