-l, --files-with-matches
Print only the names of FILEs with selected lines.
An option of grepx.
Usage
grepx -l PATTERNS [FILE]...
grepx --files-with-matches PATTERNS [FILE]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-l | --files-with-matches | none | print only the names of FILEs with selected lines |
Examples
List the files under the current directory that contain a string
grepx -rl 'deprecated' .Help in the terminal
gnux help grepx --files-with-matches