Last active
April 6, 2020 06:50
-
-
Save rollin96/ebf39ce53d87cf723ecde9a64ad44351 to your computer and use it in GitHub Desktop.
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
# (비추) 파일명에 띄어쓰기가 있는 경우를 처리하기 위해서 "-print0", "-0" 옵션이 들어감. | |
find . -name config.xml -print0 | xargs -0 grep "Job_DoSomething" | |
# (추천) 아래와 같이 개행문자(\n)를 delimiter로 지정해서 파일명에 있는 띄어쓰기 문제를 해결할 수도 있음. | |
find . -name config.xml | xargs '-d\n' grep "Job_DoSomething" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment