Quantcast
Channel: Linux: using find to locate files older than - Server Fault
Viewing all articles
Browse latest Browse all 12

Answer by Thibault Richard for Linux: using find to locate files older than

$
0
0

If you search for files created before today

TODAYMIDNIGHT=$(date --date '1 day ago'+"%Y-%m-%d 23:59:59")find . -type f -not -newermt "$TODAYMIDNIGHT"

Viewing all articles
Browse latest Browse all 12

Trending Articles