![]() The following syntax will read and search all files under each directory, recursively. Grep -r 'something' /path/to/dir Following symtlinks In other words, it will look into sub-directories too. The -r option read/sarch all files under each directory, recursively, following symbolic links only if they are on the command line. The syntax is as follows for the grep command to find all files under Linux or Unix in the current directory: ![]() How to use grep command to recursively search All files for a String
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |