LoginSignup
5
3

More than 5 years have passed since last update.

findで日時指定で検索する

Posted at

覚書

findコマンドで検索するとき、日時を指定したくなります。
この時間の範囲を対象に更新(-mtime)したファイルを検索してくれます。

find /home/ -name "*.txt" -newermt '20160805 09:00:00' -and ! -newermt '20160805 09:30:00'

ほかにも、-newerat-atimeで、-newerct-ctimeとして指定できます。

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3