3 examples for rg

{{ 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