jacobstanley / hadoop-tools

Tools for working with Hadoop, written with performance in mind.
Other
37 stars 15 forks source link

Add --atime and --mtime support to find. #25

Closed luke-clifton closed 7 years ago

luke-clifton commented 7 years ago

Adds support for duration based time queries.

 hh find --mtime -1d12h           # files modified less than 1 day and 12 hours ago
 hh find --mtime +30s             # files modified more than 30 seconds ago
 hh find --mtime 1d               # files modified exactly 1 day ago (er, fairly useless, but there is precedent)

We do not support the Nth 24 hour period that various unix find utilities support.

This PR builds on https://github.com/jystic/hadoop-tools/pull/24 and https://github.com/jystic/hadoop-tools/pull/23

jacobstanley commented 7 years ago

:1st_place_medal: