Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

grep and

# EXAMPLE: displays any lines that contain either "include this string" or "this works too" 
egrep "include this string|this works too" *

# SYNTAX:
# egrep "<pattern-1>|<pattern-2>" *

# egrep is combined with the "|" character (pipeline: normally the shift alternative to the "" on the keyboard)
Source by www.thegeekstuff.com #
 
PREVIOUS NEXT
Tagged: #grep
ADD COMMENT
Topic
Name
5+9 =