
ショコラ
Linux 特定の日付以降に変更されたファイルを調べるには?
「find -newermt ‘20220601 00:00’」でキメマス。
※今のやり方はnewerファイルを作る必要無し。

もっさん先輩
①今のやり方
find -newermt '20220601 00:00'
②昔のやり方
- 日付ファイルを作成します。
touch -m -d '2022-06-01' newer
- その日付ファイル以降に変更されたファイルの一覧を取得します。
find -type f -newer newer
昔は日付を比較するために、わざわざ日付ファイルを作成しなければならなかったのです。