"Egrep"의 두 판 사이의 차이
DB CAFE
(같은 사용자의 중간 판 2개는 보이지 않습니다) | |||
1번째 줄: | 1번째 줄: | ||
#Look for one string: | #Look for one string: | ||
− | + | <source lang=sh> | |
− | + | grep "string" | |
− | + | egrep "string" | |
− | + | grep -E "string" | |
+ | </source> | ||
#Look for either of two strings: | #Look for either of two strings: | ||
− | + | <source lang=sh> | |
− | + | egrep "string1|string2" | |
+ | grep -E "string1|string2" | ||
+ | </source> | ||
+ | # Look for either of four strings: | ||
+ | <source lang=sh> | ||
+ | egrep "string1|string2|string3|string4" | ||
+ | grep -E "string1|string2|string3|string4" | ||
+ | </source> | ||
− | |||
− | |||
− | |||
[[category:linux]] | [[category:linux]] |
2020년 11월 19일 (목) 10:10 기준 최신판
thumb_up 추천메뉴 바로가기
- DBA { Oracle DBA 명령어 > DBA 초급 과정 > DBA 고급 과정 }
- 튜닝 { 오라클 튜닝 목록 }
- 모델링 { 데이터 모델링 가이드 }
- Look for one string:
grep "string"
egrep "string"
grep -E "string"
- Look for either of two strings:
egrep "string1|string2"
grep -E "string1|string2"
- Look for either of four strings:
egrep "string1|string2|string3|string4"
grep -E "string1|string2|string3|string4"