Re: How to restrict command “git grep” to the first search result per file?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Markus

On 06/07/2025 12:28, Markus Elfring wrote:
File contents can be searched also by the means of the program call “git grep”.
Would you become interested to find specified items only once in each file
(instead of multiple times)?

Looking at the man page for git grep there is a --max-count option which will limit the number of matches per file.

Thanks

Phillip




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux