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

grep을 사용한 파일내용 찾기

· 15년 전 · 2939 · 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

게시글 목록

번호 제목
384
12508
383
381
20395
12507
12506
12505
12504
12503
12502
12500
12499
12498
20392
12497
12496
12495
12494
12493
12492
12491
12490
12489
12488