Please enable Javascript to view this site.
  • Coding

  • Technology

  • Japanese

  • Chinese

  • Miscellaneous

Finding Files within a Date Range

March 8, 2012 | Tags: , | Leave a comment

Here’s a clever little trick I picked up from the Interwebs. While the find command doesn’t allow you to specify date ranges explicitly, you can easily create two files with specific dates and use them with the -cnewer option.

# touch tmp -t 201202170000
# touch tmp2 -t 201202170840
# find . -cnewer tmp -and ! -cnewer tmp2

Comments (0) Trackbacks (0)

No comments yet.

Leave a comment

No trackbacks yet.