Page MenuHomeFreeBSD

Extend find(1)'s -cmin/-amin/-mmin options to take units as part of the argument.
AbandonedPublic

Authored by sobomax on Feb 28 2017, 9:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 7:09 AM
Unknown Object (File)
May 23 2023, 10:32 PM
Unknown Object (File)
Apr 26 2023, 4:04 PM
Unknown Object (File)
Apr 9 2023, 6:33 AM
Unknown Object (File)
Mar 23 2017, 7:22 PM
Unknown Object (File)
Mar 6 2017, 1:38 PM
Subscribers

Details

Reviewers
jilles
Group Reviewers
manpages
Summary

Right now find(1) allows looking for files creted/modified/accessed within the last X minutes. This is somewhat limiting, as sometimes you might want to have a smaller/larger unit of time, i.e. find files that are accessed within the last 10 seconds:

find /xxxx -amin -10s

Manual page has been updated to reflect the new functionality.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 7815

Event Timeline

sobomax retitled this revision from to Extend find(1)'s -cmin/-amin/-mmin options to take units as part of the argument..
sobomax updated this object.
sobomax edited the test plan for this revision. (Show Details)
sobomax set the repository for this revision to rS FreeBSD src repository - subversion.
sobomax edited edge metadata.
jilles requested changes to this revision.Feb 28 2017, 11:20 PM
jilles added a reviewer: jilles.
jilles added a subscriber: jilles.

The example is possible with existing functionality:

find /xxxx -atime -10s

I think -amin, etc. are mostly obsolete.

The difference between the existing and new functionality seems to be that the new functionality allows searching for files accessed/modified/changed/created a particular number (rounded down to an integer) of hours or weeks ago. I think that may not be important enough for the additional code added.

This revision now requires changes to proceed.Feb 28 2017, 11:20 PM

Looks like necessary functionality is already part of the -atime/-ctime/-mtime.