Quote:
Originally Posted by postcd
how i can find files created/modiffied (..) in certain day + certain hour and minute?
|
'man find', see "printf": use
epoch for creation and modification time directives together with the path and file name. That gives you a list of three columns.
'man date', see "--date=": give time stamp of hour start and print as epoch. Do same for time stamp of hour end. That gives you two epoch values.
String this together with a "while" loop, looping over the variables containing creation and modification time of 'find' output and use "-le" and "-ge" to filter for your time "range".
*Do note in UNIX, it is not possible to tell a files ctime. Plus ctime actually stands for "change time". It is the time when changes were made to the file or directory's inode (owner, permissions, etc, etc).
**Do note time stamps may be changed unless the immutable bit is set. Time stamps on their own should never be used as definitive proof of about anything.
***Also in 'man find': "-newer".