The grep command lets you search any text file for patterns. The pattern can be any string of text or can use Unix regular expressions for sophisticated pattern matching. You can search a single file or use standard Unix methods to specify many files. The search can be for files in a single directory or extended recursively to include files in subdirectories.
- Mac OS 10.1 or later