Skip to main content
Add shell syntax highlighting
Source Link
Benjamin Loison
  • 5.8k
  • 4
  • 20
  • 37

Use grep -ilR:

grep -Ril "text-to-find-here" / 
grep -Ril "text-to-find-here" / 
  • i stands for ignore case (optional in your case).
  • R stands for recursive.
  • l stands for "show the file name, not the result itself".
  • / stands for starting at the root of your machine.

Use grep -ilR:

grep -Ril "text-to-find-here" / 
  • i stands for ignore case (optional in your case).
  • R stands for recursive.
  • l stands for "show the file name, not the result itself".
  • / stands for starting at the root of your machine.

Use grep -ilR:

grep -Ril "text-to-find-here" / 
  • i stands for ignore case (optional in your case).
  • R stands for recursive.
  • l stands for "show the file name, not the result itself".
  • / stands for starting at the root of your machine.
Shorten.
Source Link
Mateen Ulhaq
  • 27.9k
  • 21
  • 121
  • 155

You can useUse grep -ilR:

grep -Ril "text-to-find-here" / 
  • i stands for ignore case (optional in your case).
  • R stands for recursive.
  • l stands for "show the file name, not the result itself".
  • / stands for starting at the root of your machine.

You can use grep -ilR:

grep -Ril "text-to-find-here" / 
  • i stands for ignore case (optional in your case).
  • R stands for recursive.
  • l stands for "show the file name, not the result itself".
  • / stands for starting at the root of your machine.

Use grep -ilR:

grep -Ril "text-to-find-here" / 
  • i stands for ignore case (optional in your case).
  • R stands for recursive.
  • l stands for "show the file name, not the result itself".
  • / stands for starting at the root of your machine.
fix quotes
Source Link
fedorqui
  • 293.5k
  • 113
  • 592
  • 640

You can use grep -ilR:

grep -Ril "text-to-find-here" / 
  • i stands for ignore case (optional in your case).
  • R stands for recursive.
  • l stands for "show the file name, not the result itself`itself".
  • / stands for starting at the root of your machine.

You can use grep -ilR:

grep -Ril "text-to-find-here" / 
  • i stands for ignore case (optional in your case).
  • R stands for recursive.
  • l stands for "show the file name, not the result itself`.
  • / stands for starting at the root of your machine.

You can use grep -ilR:

grep -Ril "text-to-find-here" / 
  • i stands for ignore case (optional in your case).
  • R stands for recursive.
  • l stands for "show the file name, not the result itself".
  • / stands for starting at the root of your machine.
added 56 characters in body
Source Link
Loading
deleted 29 characters in body
Source Link
fedorqui
  • 293.5k
  • 113
  • 592
  • 640
Loading
no need of /*, just / works
Source Link
fedorqui
  • 293.5k
  • 113
  • 592
  • 640
Loading
Source Link
fedorqui
  • 293.5k
  • 113
  • 592
  • 640
Loading