mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
find: Add the -newer
, -anewer
and -cnewer
options
These return true if the last modification time, last access time or creation time of a file is greater than the given reference file. If the `-L` option is in use and the given reference file is a symbolic link then the timestamp of the file pointed to by the symbolic link will be used.
This commit is contained in:
parent
57a1d99cf4
commit
64bb5652a1
2 changed files with 71 additions and 0 deletions
|
@ -52,6 +52,18 @@ space rounded up to the nearest whole unit.
|
|||
* `-writable`: Checks if the file is writable by the current user.
|
||||
* `-executable`: Checks if the file is executable, or directory is searchable,
|
||||
by the current user.
|
||||
* `-newer file`: Checks if the file last modification time is greater than that
|
||||
of the specified reference file. If `file` is a symbolic link and the `-L`
|
||||
option is in use, then the last modification time of the file pointed to by
|
||||
the symbolic link is used.
|
||||
* `-anewer file`: Checks if the file last access time is greater than that of
|
||||
the specified reference file. If `file` is a symbolic link and the `-L`
|
||||
option is in use, then the last access time of the file pointed to by the
|
||||
symbolic link is used.
|
||||
* `-cnewer file`: Checks if the file creation time is greater than that of
|
||||
the specified reference file. If `file` is a symbolic link and the `-L`
|
||||
option is in use, then the creation time of the file pointed to by the
|
||||
symbolic link is used.
|
||||
* `-print`: Outputs the file path, followed by a newline. Always evaluates to
|
||||
true.
|
||||
* `-print0`: Outputs the file path, followed by a zero byte. Always evaluates to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue