Difference between revisions of "Grep --exclude"
Jump to navigation
Jump to search
m (Welcome moved page --exclude to Grep --exclude) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lc}} | ||
+ | grep TEXT --exclude "yourfile.txt" | ||
--exclude pattern | --exclude pattern | ||
Line 7: | Line 9: | ||
specified, not only to the filename component. | specified, not only to the filename component. | ||
+ | == See also == | ||
+ | * {{grep}} | ||
− | + | [[Category:Grep]] |
Latest revision as of 08:09, 28 June 2024
grep TEXT --exclude "yourfile.txt"
--exclude pattern If specified, it excludes files matching the given filename pattern from the search. Note that --exclude and --include patterns are processed in the order given. If a name matches multiple patterns, the latest matching rule wins. If no --include pattern is specified, all files are searched that are not excluded. Patterns are matched to the full path specified, not only to the filename component.
See also[edit]
Advertising: