トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS

Top / linux / System Command Examples / find examples / find 任意のファイルの更新日時よりも新しいファイルを検索
Last-modified: 2018-02-23 (金) 14:20:34 (1931d)

find 任意のファイルの更新日時よりも更新日時が新しいファイルを検索


  • syntax:
    find 検索Path -newer 元ファイル名

    find ./ -newer targetfile
    find ./ -newer targetfile -exec mv {} ./backup \;


  • comment:
    元ファイル名で指定されたファイルの更新日時よりも更新日時が新しいファイルを検索する。
    exec を使用することで、ヒットした物を、個別に処理可能

  • Example:



    Tag: Linux find

    Goto Top Page

Top / linux / System Command Examples / find examples / find 任意のファイルの更新日時よりも新しいファイルを検索