Answers for "grep -r"

4

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)
Posted by: Guest on June-24-2020
4

grep -i

With -i flag you can grep a substring with insensitive-case:
grep -i "substring_with_lower_or_upper_case"
Posted by: Guest on October-19-2020
3

grep -r

grep -r 'text goes here' path_goes_here
Posted by: Guest on April-25-2021

Browse Popular Code Answers by Language