행위

"Egrep"의 두 판 사이의 차이

DB CAFE

(새 문서: #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 str...)
 
1번째 줄: 1번째 줄:
 
#Look for one string:
 
#Look for one string:
grep "string"
+
;grep "string"
egrep "string"
+
;egrep "string"
grep -E "string"
+
;grep -E "string"
  
 
#Look for either of two strings:
 
#Look for either of two strings:
egrep "string1|string2"
+
;egrep "string1|string2"
grep -E "string1|string2"
+
;grep -E "string1|string2"
  
  
 
# Look for either of four strings:
 
# Look for either of four strings:
egrep "string1|string2|string3|string4"
+
;egrep "string1|string2|string3|string4"
grep -E "string1|string2|string3|string4"
+
;grep -E "string1|string2|string3|string4"

2018년 10월 19일 (금) 14:58 판

thumb_up 추천메뉴 바로가기


  1. Look for one string:
grep "string"
egrep "string"
grep -E "string"
  1. Look for either of two strings:
egrep "string1|string2"
grep -E "string1|string2"


  1. Look for either of four strings:
egrep "string1|string2|string3|string4"
grep -E "string1|string2|string3|string4"