4 examples for rg

{{ score }}
  # Ignore packages folders, list only matching files, case-insensitive search for 'foo'.
rg -li -g '!*/packages/*' 'foo'
        
{{ score }}
  # Recursively search for all occurrences of foo in files matching *.js
rg foo -g *.js
        
{{ score }}
  # Perform case-insensitive search for 'foo' in js files only.
rg -i foo -t js
        
{{ score }}
  # Only show path of each file with matches
rg -l foo