Skip to content

Instantly share code, notes, and snippets.

@outsideris
Last active October 6, 2015 07:37
Show Gist options
  • Save outsideris/2958949 to your computer and use it in GitHub Desktop.
Save outsideris/2958949 to your computer and use it in GitHub Desktop.
find command
$ 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