- 특정 문자열 포함 파일 찾기

 

# 문법 : find [ 대상 디렉토리 지정 ] -type f | xargs grep -in '[ 찾을 문자열 ]'
# Example) 지정된 디렉토리하위에서 'test' 가 포함된 파일을 찾는다.

[root@localhost /]#
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# find /home -type f | xargs grep -in 'test'