Last active
October 6, 2015 07:37
-
-
Save outsideris/2958949 to your computer and use it in GitHub Desktop.
find command
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
$ find . -mtime +10 \ | |
-name "title" | |
-regex "REGEXP" | |
-type f \ | |
! -iname "*.temp" \ | |
! -iname "*.pid" \ | |
-exec rm -f {} \; | |
$ grep -r YOURSTRING * | |
$ find . -type f -exec grep YOURSTRING /dev/null {} \; | |
$ find . -name FILENAME | |
$ find . -name .svn -exec rm -rf {} \; | |
# 디렉토리만 모두 퍼미션 바꾸기 | |
find /path/to/base/dir -type d -exec chmod 755 {} + | |
# 파일만 모두 퍼미션 바꾸기 | |
find /path/to/base/dir -type f -exec chmod 644 {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment