728x90
Find files that contain a text string:
The -l switch outputs only the names of files in which the text occurs (instead of each line containing the text), the -i switch ignores the case, and the -r descends into subdirectories.
1 grep -lir "some text" *
The -l switch outputs only the names of files in which the text occurs (instead of each line containing the text), the -i switch ignores the case, and the -r descends into subdirectories.
728x90
'Research > Linux' 카테고리의 다른 글
grep & find (1) | 2008.10.02 |
---|---|
Gnome Terminal의 기본 크기 변경 (0) | 2008.10.02 |
.vimrc (0) | 2005.11.07 |
프로세스 관리 (0) | 2005.10.25 |
kernel thread 사용하기 (0) | 2005.10.25 |