grep -e search_word /home/ -R
[이 게시물은 관리자님에 의해 2011-10-31 17:32:05 Linux에서 이동 됨]
댓글 1개
haejuksun
14년 전
-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
옵션 설명을 보면, 정규표현식 옵션 같은데...
-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
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5752 | 10년 전 | 497 | ||
| 5751 | 10년 전 | 542 | ||
| 5750 | 10년 전 | 342 | ||
| 5749 | 10년 전 | 408 | ||
| 5748 | 10년 전 | 818 | ||
| 5747 | 10년 전 | 597 | ||
| 5746 | 10년 전 | 302 | ||
| 5745 | 10년 전 | 349 | ||
| 5744 | 10년 전 | 349 | ||
| 5743 | 10년 전 | 284 | ||
| 5742 | 10년 전 | 289 | ||
| 5741 | 10년 전 | 644 | ||
| 5740 | 10년 전 | 321 | ||
| 5739 | 10년 전 | 311 | ||
| 5738 |
프로그램은어려워
|
10년 전 | 932 | |
| 5737 | 10년 전 | 504 | ||
| 5736 | 10년 전 | 399 | ||
| 5735 | 10년 전 | 409 | ||
| 5734 |
잘살아보자
|
10년 전 | 610 | |
| 5733 |
잘살아보자
|
10년 전 | 567 | |
| 5732 |
잘살아보자
|
10년 전 | 967 | |
| 5731 |
잘살아보자
|
10년 전 | 317 | |
| 5730 |
|
10년 전 | 1283 | |
| 5729 |
잘살아보자
|
10년 전 | 547 | |
| 5728 |
잘살아보자
|
10년 전 | 367 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기