Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #265341
| From | Richard Hector <richard@walnut.gen.nz> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | find question |
| Date | 2023-12-29 11:00 +0100 |
| Message-ID | <HQhON-gRTm-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Hi all, When using: find $dir -mtime +7 -delete Will that fail to delete higher directories, because the deletion of files updated the mtime? Or does it get all the mtimes first, and use those? And how precise are those times? If I'm running a cron job that deletes 7-day-old directories then creates a new one less than a second later, will that reliably get the stuff that's just turned 7 days old? Or will there be a race condition depending on how quickly cron starts the script, which could be different each time? Is there a better way to do this? Cheers, Richard
Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread
find question Richard Hector <richard@walnut.gen.nz> - 2023-12-29 11:00 +0100
Re: find question Greg Wooledge <greg@wooledge.org> - 2023-12-29 13:30 +0100
Re: find question Richard Hector <richard@walnut.gen.nz> - 2024-01-13 12:30 +0100
Re: find question Greg Wooledge <greg@wooledge.org> - 2024-01-13 16:20 +0100
csiph-web