LoginSignup
47
49

More than 5 years have passed since last update.

[Linux] findコマンドで指定した日付の範囲に更新されたファイルを検索する

Last updated at Posted at 2016-02-12

mtime で指定するより便利なので、備忘録として記述

例:カレントディレクトリ以下で、2015-10-01から2016-01-31の期間に変更されたPHPファイルを検索し一覧表示する
find . -type f -name "*.php" -newermt "2015-10-01" -and ! -newermt "2016-01-31" -ls
47
49
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
47
49