테스트 사이트 - 개발 중인 베타 버전입니다

grep을 사용한 파일내용 찾기

· 15년 전 · 2941 · 1
grep -e  search_word /home/ -R

[이 게시물은 관리자님에 의해 2011-10-31 17:32:05 Linux에서 이동 됨]

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 1개

-e 옵션 빼도 동일한 결과네요.

옵션 설명을 보면, 정규표현식 옵션 같은데...
-e PATTERN, --regexp=PATTERN
Use PATTERN as the pattern; useful to protect patterns beginning with -.


[root@oracle test]# grep -e search_word ./test -R
./test/test.txt:search_word
[root@oracle test]# grep search_word ./test -R
./test/test.txt:search_word


[root@oracle test]# grep -e [a-z] ./test -R
./test/test.txt:search_word
./test/test.txt:search-word

게시글 목록

번호 제목
12333
12332
12331
12329
12328
12327
12326
12325
12324
12323
12322
12321
12320
12319
12318
12317
12316
12315
12314
12313
12312
12311
12310
12309
12308