From 7e787c0a7625d89ea603f8dfd1495e697b3299b8 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sun, 17 Nov 2019 16:31:53 +1100 Subject: [PATCH] Add note about compatibility of mtime conditions --- find.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/find.md b/find.md index aa9017139..ba85b41f2 100644 --- a/find.md +++ b/find.md @@ -42,6 +42,15 @@ find -size +2G # Larger than 2GiB ``` +```bash +-newer file.txt +-newerm file.txt # modified newer than file.txt +-newerX file.txt # [c]hange, [m]odified, [B]create +-newerXt "1 hour ago" # [t]imestamp +``` + +### Access time conditions + ```bash -atime 0 # Last accessed between now and 24 hours ago -atime +0 # Accessed more than 24 hours ago @@ -52,12 +61,7 @@ find -mtime +1w # Last modified more than 1 week ago ``` -```bash --newer file.txt --newerm file.txt # modified newer than file.txt --newerX file.txt # [c]hange, [m]odified, [B]create --newerXt "1 hour ago" # [t]imestamp -``` +These conditions only work in MacOS and BSD-like systems (no GNU/Linux support). ### Condition flow