-1

How can we list all files of a directory created before a particular day in Unix?

Termininja
  • 6,620
  • 12
  • 48
  • 49
Arman
  • 1

1 Answers1

0

If this may help, after you calculate the number of days between this particular day and today (It's not easy to do, but this could be of help), then you can use find -ctime -n where n is the number of days since the files where created.

find <your-directory> -ctime -5
Community
  • 1
  • 1
J. Chomel
  • 8,193
  • 15
  • 41
  • 69