How do I grep a file by date?

How do I grep a file by date?
Answer
4 Answers. You can use the find command to find all files that have been modified after a certain number of days. Note that to find files modified before 24 hours ago, you have to use -mtime +1 instead of -mtime -1 . This will find all files modified after a specific date.
 

Tìm kiếm

Back
Top