How do I list files between two time stamps in a certain directory? (SunOS) [closed]

StackOverflow https://stackoverflow.com/questions/21356213

  •  02-10-2022
  •  | 
  •  

سؤال

i.e.

List any files between 2014-01-25 1300 - 2014-01-25 2000 in

Cheers

هل كانت مفيدة؟

المحلول

You can use the find command with multiple selectors - e.g. find . -mtime +1 -mtime -3. It can be used with ctime, atime, etc., as well.

نصائح أخرى

Assuming you have a GNU find (which you could compile on SunOS if you don't have it), use the age range options for find

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top