GREP to locate text from files

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.


<code>grep -Ril ‘<div class=”container”>’ /users/paulsvang/Desktop/Spsolutionsusa/graduate-pro/</code>

admin has written 39 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>