In linux using bash, what is the easiest way to find files that were modified more than an hour ago but less than 3 days ago?
Of course, there should be an easy way to do this. I continue to search and cannot find an easy solution.
Find has -mtime and -mmin:
find . -mtime +3 -mmin -60
In the search guide:
Numeric arguments can be specified as:+ n is greater than n-n is less than nn for exactly n
Numeric arguments can be specified as:
+ n is greater than n
-n is less than n
n for exactly n
That should be enough: find . -mtime -3 -mmin +60 find . -mtime -3 -mmin +60
find . -mtime -3 -mmin +60
I just tried:
find ./ -mtime -3 -mmin +60 -exec ls -lhrt {} \; | awk '{print $5" "$6" "$7" "$8}'
Source: https://habr.com/ru/post/1232856/More articles:How to use unittest.TestResult? - pythonMedia request for full screen viewing - cssPHPStorm: add file type to new dialog - phpstormSaving the state of the Shiny application for later recovery - rApp :: abort (404) equivalent for Laravel 5? - phpCloudfront - multiple sources in one distribution - amazon-cloudfrontGet media token using HttpClient - c #Is there a way to get the median index in python in one command? - pythonC ++ rest sdk form data POST json - c ++Ban on using Tumblr with AngularJS ng-click denied - javascriptAll Articles