NEW ugrep 6.5: a more powerful, ultra fast, user-friendly, compatible grep. Includes a TUI, Google-like Boolean search with AND/OR/NOT, fuzzy search, hexdumps, searches (nested) archives (zip, 7z, tar, pax, cpio), compressed files (gz, Z, bz2, lzma, xz, lz4, zstd, brotli), pdfs, docs, and more
BSD 3-Clause "New" or "Revised" License
2.56k
stars
109
forks
source link
max-count across all files #378
Closed
NightMachinery closed 4 months ago
Basically this question: https://stackoverflow.com/questions/14093452/grep-only-the-first-match-and-stop
I want ugrep to search a dir and stop on its first match.
But this continues to search other files after finding a match. I can't use the
head -1
trick, as I am using--json
.