I need to find empty files in a directory and write them into a text file. Directory will contain old files as well, i need to get the empty files for the last one hour only.
hi,
try:
find /path/to/dir -type f -empty -mmin -60 -print >> /path/to/list.txt
1 Like