grep -r

# 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)

3.5
8
Pasolainen 125 points

                                    With -i flag you can grep a substring with insensitive-case:
grep -i &quot;substring_with_lower_or_upper_case&quot;

3.5 (8 Votes)
0
3.75
8
Anjel 100 points

                                     grep -r 'text goes here' path_goes_here

3.75 (8 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
grep -T .* grep grep &lt; &gt; grep [] grep rl grep &gt; grep R grep -i grep -E or grep '^# grep '*' grep -i -r grep -s and or in grepl grep &quot;&quot; -e grep -r -i grep with or logic &quot;grep -P&quot; grep e what is | in grep command grep -i linux grep : linux grep ^? grep / grep -rp grep -rl grep &ndash;i grep - i grep with and unix grep or unix grep | grep -o '.*' grep -o .* -i in grep grep -i in unix grep */ grep \ grep -ni terminal grep -r grep with * grep &quot;^\s*[^#]&quot; grep :a grep -i npe grep and operation grep -u grep - grep -Po grep -rwe grep() r grep + or grep -r -I -l grep rw grep [ grep -nr grep &ldquo;^$&rdquo; grep /&amp; grep /$ grep &quot;-P&quot; grep -o -E &quot;grep -R&quot; grep ^ grep ^m grep ^a grep {} grep ?! grep &quot;-R&quot; grep &quot;&quot; * r grepl grep ^ii grep -r command in linux r grep grep ^..r r grep ^ grep -rw grep ^r linux &quot;grep -r&quot; grep -iR grep &quot;&quot; grep -r what it means grep -i -w grep pattern grepl r &quot;grep -i ^&quot; grep -i ^ grep in r grep -rr grep [+-] grep -o? grep -e ? grep -E linux grep ^[^#] grep o grep -inr grep -G grep -nir unix grep &quot;grep -w&quot; what is grep -i grep this and that grep '!!' grep -iRI grep ie grep | grep and or grep * and in grep grep -m $.grep grep with $ grep -e and grep -&quot;l&quot; grep and R grep -- '[-]X' grep ^ grep i grep -P grep . grep -oE grep % grep -i option linux grep -i grep &quot;^l&quot; grep &quot;^&quot; grep -E &quot;^&quot; grep -irln grep -F grep -i unix grep unix grep -i &quot;$*&quot; linux grep grep multiple strings and condition | grep grep linux grep and statement or operator grep &quot;grep -v&quot; grepa code grepl grep either or pattern grep !! grep multiple or grep with and condition grep -a grep -i meaning grep syntax use and in grep grep grep linux grep command multiple conditions grep command with or condition grep different than or grep grep this or that linux or condition in grep linux grep not grep AND operator grep -q grep -w grep -h and -w grep -R -r grep example which and grep where and grep &quot;grep -o&quot; grep -v grep -E &amp; grep with not condition grep -E -f grep multiple condition grep -i .* how to or with grep grep ou? grep -l grep with or grep -E terminal how to put conditions for grep grep -i grep -ri grep and grep in linux grep -r grep &ndash;c &ndash;i grep with two conditions and grep with two conditions grep -o bash grep and grep -- bash grep or grep r use or in grep bash and command in grep grep and condition grep or match use nit in grep linux grep or clause grep regex and operator grep with or condition or operator regex grep grep contains or using or in grep grep in or condition bash grep or condition AND condition with grep or condition with grep grep or pattern grep for this and not this grep regex or condition grep this or that linux grep and bash how to grep with or not grep in linux linux grep or condition linux grep with and grep example or operator linux grep or grep not grep and pattern grep or condition grep or grep and
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source