grep/file masks
< grep
Jump to navigation
Jump to search
Revision as of 14:56, 5 February 2020 by Woozle (talk | contribs) (Created page with "This is because grep does not do its own file-filtering but relies entirely on the command line environment to translate file-mask specifications into a list of files, whi...")
This is because grep does not do its own file-filtering but relies entirely on the command line environment to translate file-mask specifications into a list of files, which are then each passed to grep as a separate argument. This is a feature/defect of bash
and possibly most other Linux command shells (investigation needed).
In short, grep does not have the ability to search recursively using a file-mask, and any mask entered:
- will apply only to the current folder
- will prevent grep from recursively searching any folders whose names do not also match