Difference between revisions of "Grep --exclude"

From wikieduonline
Jump to navigation Jump to search
(Created page with " {{grep}}")
 
Line 1: Line 1:
  
 +
 +
    --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.
  
  
 
{{grep}}
 
{{grep}}

Revision as of 09:06, 12 June 2024


    --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.


ack, ag, grep, egrep, fgrep, agrep, ngrep, pgrep, awk, sed, strings, tr, tail, mtail, git grep, wc, uniq, LogQL, findstr (Windows), rg, git-grep, cut

Advertising: