사용자 도구

사이트 도구


linux:grep

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판 양쪽 다음 판
linux:grep [2021/08/24 13:54]
kwon37xi [특정 파일명에서 문자열 찾기]
linux:grep [2022/04/03 22:15]
kwon37xi
줄 9: 줄 9:
   * [[http://www.cyberciti.biz/faq/unix-linux-grep-include-file-pattern-recursive-example/|grep include file pattern recursive example]]   * [[http://www.cyberciti.biz/faq/unix-linux-grep-include-file-pattern-recursive-example/|grep include file pattern recursive example]]
 <code sh> <code sh>
-# 하위 디렉토리를 포함하려면 ---include=GLOB 을 사용 +# 하위 디렉토리를 포함하려면 ---include=GLOB 을 사용 
-# grep ---include=GLOB "pattern" /path/to/dir +# grep ---include=GLOB "pattern" /path/to/dir 
-grep ---include="*.txt" "pattern" /path/to/dir +grep ---include="*.txt" "pattern" /path/to/dir 
-grep ---include="*.txt" "foo" ~/projects/+grep ---include="*.txt" "foo" ~/projects/ 
 + 
 +# -R 은 -r 과 같으나 모든 심볼릭 링크를 따라간다.
 </code> </code>
   * ''xargs'' 사용   * ''xargs'' 사용
linux/grep.txt · 마지막으로 수정됨: 2023/05/15 17:03 저자 kwon37xi