--include
Search only files that match GLOB (a file pattern).
An option of grepx.
Usage
grepx --include=GLOB PATTERNS [FILE]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
--include | GLOB | search only files that match GLOB (a file pattern) |
Examples
List the Go files that lack a license header
grepx -rL --include='*.go' 'SPDX-License-Identifier' .Help in the terminal
gnux help grepx --include