[Cialug] grep question
Tim Wilson
tim_linux at wilson-home.com
Fri Apr 17 00:49:49 UTC 2020
I think what you’re looking for is -l (lowercase L). Or if you prefer the
long option, --files-with-matches
On Thu, Apr 16, 2020 at 7:33 PM <chris at bynw.com> wrote:
> I have a question about using Grep. I have fgrep searching for a long
> string in several files. It's great it finds them so there is nothing
> wrong there. Just when I get the results it gives me the file name and
> the long string. How do I just get the file name as the output?
>
> Thanks!
>
> chris
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> https://www.cialug.org/cgi-bin/mailman/listinfo/cialug
>
--
Tim
Required reading: http://bccplease.com/
More information about the Cialug
mailing list