Skip to Content
gnux

--include

Search only files that match GLOB (a file pattern).

An option of grepx.

Usage

grepx --include=GLOB PATTERNS [FILE]...

Details

ShortLongValueDefaultMeaning
--includeGLOBsearch 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

On this page