< Day Day Up > |
4.11. Recursive grep (rgrep, grep –R)Unlike the members of the grep family, Linux's rgrep can recursively descend a directory tree. Rgrep has a number of command-line options and supports the same metacharacters as regular grep (grep –R). See Appendix A for a complete description of rgrep, or type rgrep–? for online help (not supported on regular versions of UNIX). Example 4.52.% grep -r 'Tom' ./dir % rgrep 'Tom' ./dir EXPLANATION Searches recursively for all files containing Tom starting from under the ./dir directory. |
< Day Day Up > |