Training

When: Every first Sunday of every month -get a ticket- from $15 (Click Here).

Tuesday, February 20, 2018

How to Find All Files Containing Specific Text on Linux | Linux Quick Tips

You can use the Grep command with a few options to achieve this:



$ grep -Ril "specific_text" directory

  • R option search recursively in subdirectories and in symbolic links
  • i option is for case-insensitive search
  • l option will print only the name of the files instead of printing the matching lines




How to Find All Files Containing Specific Text on Linux | Linux Quick Tips

No comments: