Skip to Content
gnux

-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

ShortLongValueDefaultMeaning
-l--files-with-matchesnoneprint 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

On this page