Skip to content

Instantly share code, notes, and snippets.

@tiijima
Created September 11, 2015 09:11
Show Gist options
  • Save tiijima/8e3602c37cab3ac05bb3 to your computer and use it in GitHub Desktop.
Save tiijima/8e3602c37cab3ac05bb3 to your computer and use it in GitHub Desktop.
bash find カレントディレクトリ以下の30日以前のファイルを削除する
#カレントディレクトリ以下の30日以前のファイルを削除する
find . -name "*.txt" -type f -daystart -mtime +30 | xargs rm -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment