Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Ubuntu で特定の日付 (例: 11.1.2012) に変更されたすべてのファイルのリストを取得したいと思います。
find -mtime
数日前に動作しますが、正確に 1 日からのファイルが必要であり、日数をカウントするよりも快適にしたいと考えています。そうする方法はありますか?
どうもありがとうございました。
ちょっとした裏技が使えます。touchコマンドを使用して、検索している日付を含む変更日付を持つ 2 つのファイルを作成します。
例:
touch -t 201204080000 ダミー1 touch -t 201204082359 ダミー2
touch -t 201204080000 ダミー1
touch -t 201204082359 ダミー2
次に、次のようにfindを使用できます。
find /somedir/ ( -新しいダミー 1 -and ! -新しいダミー 2)
これはうまくいくはずです。