Skip to content

Instantly share code, notes, and snippets.

@e2kaneko
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save e2kaneko/dc6901f5b2f988c10e7a to your computer and use it in GitHub Desktop.

Select an option

Save e2kaneko/dc6901f5b2f988c10e7a to your computer and use it in GitHub Desktop.
findコマンドで更新日がn日以内のファイル一覧を取得する
#更新日が1日前のファイルをリストアップ(現在の24時間前を起点にその過去24時間)
find . -mtime 1
#更新日が1日以内のファイルをリストアップ(現在から24時間前まで)
find . -mtime -1
# 分で指定する場合は↓
find . -mmin -60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment