Created
September 11, 2015 09:11
-
-
Save tiijima/8e3602c37cab3ac05bb3 to your computer and use it in GitHub Desktop.
bash find カレントディレクトリ以下の30日以前のファイルを削除する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#カレントディレクトリ以下の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