Search Results

Search: Posts Made By: disedorgue
2,606
Posted By disedorgue
Exact, if name of subdirectory is the name of...
Exact, if name of subdirectory is the name of file where to launch command then this file will delete.
So, We can just repeat -type f after -o connector:
find $DIRECTORY -type f ! -name '*.gz' ...
2,606
Posted By disedorgue
Hi, Here, we can use only one find command: ...
Hi,
Here, we can use only one find command:
find $DIRECTORY -type f ! -name '*.gz' -mtime +10 -exec gzip {} \; -o -name '*.gz' -mtime +365 -exec rm {} \;
Regards.
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 10:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy