From d3673484f61f4dc8c1b0156c8131c1cc038850ce Mon Sep 17 00:00:00 2001 From: lyj Date: Fri, 2 Dec 2022 10:49:04 +0800 Subject: [PATCH] rm wrong items in `find` ``` find --version find (GNU findutils) 4.9.0 ``` ``` find . -type f -ctime -48h find: invalid argument `-48h' to `-ctime' ``` ``` find . -type f -Btime -2 find: unknown predicate `-Btime' ``` --- find | 3 --- 1 file changed, 3 deletions(-) diff --git a/find b/find index a02b1aa..465a97b 100644 --- a/find +++ b/find @@ -61,10 +61,7 @@ find . -type f -samefile MY_FILE_HERE 2>/dev/null find . -type f -exec chmod 644 {} \; # To find all files changed in last 2 days: -find . -type f -ctime -48h find . -type f -ctime -2 -# Or created in last 2 days: -find . -type f -Btime -2 # Or accessed in last 2 days: find . -type f -atime -2