----------------------------------------------------------------------------------
@MSGID: 1@dont-email.me> d1602c88
@REPLY: 4@dont-email.me> 4adde48d
@REPLYADDR Chris Elvidge <chris@mshome.net>
@REPLYTO 2:5075/128 Chris Elvidge
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: 1@dont-email.me>
@RFC-References: 4@dont-email.me>
@TZUTC: 0100
@PID: Mozilla/5.0 (X11; Linux x86_64; rv:52.0)
Gecko/20100101 Thunderbird/52.2.1 Lightning/5.4
@TID: FIDOGATE-5.12-ge4e8b94
On 26/09/2023 14:02, Marco Moock wrote:
> Hello!
>
> What is the best way to get a list of files that contain a specific
> string without printing the content?
>
> I can use find to select all files in a directory including subdirs and
> I can use grep to filter it, but it prints the content.
>
> Is there a better solution for that?
>
Forget find, use grep -rl (or -Rl) (recursive, list)
--
Chris Elvidge, England
A TRAINED APE COULD NOT TEACH GYM
--- Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
* Origin: A noiseless patient Spider (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5075/128
@PATH: 5075/128 5020/1042 4441