Created
October 6, 2015 04:02
-
-
Save namomo/d2f5de9e91872444f408 to your computer and use it in GitHub Desktop.
remove.sh
This file contains hidden or 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
#!/bash/sh | |
# find [시작위치] -name 패턴 -type 타입 -exec 명령어+옵션 {} \; | |
# find는 대상을 찾을 때 마다, 그 이름을 {}에 하나씩 하나씩 넣어주며, | |
# -exec뒤에 전달된 명령어+옵션을 실행해 준다. | |
# 그리고, \;는 명령어에 해당하는 옵션들이 모두 입력 되었음을 의미한다. | |
# 현재 디렉토리와 하위 디렉토리 중 font 이름의 디렉토리를 찾아 삭제 | |
find . -name "font" -type f -exec rm -rf {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment