command line - Listing modified files using a specific date range in a directory - Ask Ubuntu
i'm trying figure out way list modified files within given date range. bit hectic sniff each , every folders. couldn't find proper guide using date range see going throwing bunch of static dates or similar.
please advise if there's way around using find
, grep
or ls
arguments.
you can try this
find -newerct "1 sep 2016" ! -newerct "1 oct 2016"
to see files modified between 1th sep 2016 1th oct 2016. works find version equal or higher 4.3.3
here c
inode status change time. can use m
in place of have result consider file modification time only.
also time string can converted yyyymmdd
format. so, 1 sep 2016
becomes 20160901
.
Comments
Post a Comment