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.

source: https://stackoverflow.com/a/23508622/1039893


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User