bug#70540: grep -c -r | grep -v ':0$'

2024-04-28 Thread Dale R. Worley
For everyone's critique, here are my changes (to grep 3.11): diff -u doc/grep.in.1.orig doc/grep.in.1 --- doc/grep.in.1.orig 2024-04-28 18:04:37.494096472 -0400 +++ doc/grep.in.1 2024-04-28 18:24:15.187984393 -0400 @@ -2,7 +2,7 @@ .de dT .ds Dt \\$2 .. -.dT Time-stamp: "2019-12-29" +.dT

bug#70540: grep -c -r | grep -v ':0$'

2024-04-25 Thread jackson
Dale wrote: > If these weren't ad-hoc activities, I would construct a careful pipeline > like > > grep -c -r pattern directory | sort -t: -k2,2r | head -n3 > > but for ad-hoc use, it seems to me that it's sensible and convenient to > make the combination -c -l do what it intuitively "ought"

bug#70540: grep -c -r | grep -v ':0$'

2024-04-25 Thread Paul Eggert
On 4/25/24 13:10, Dale R. Worley wrote: One further thing, I haven't written any updates to the manual page or .texi. Does anyone have suggestions for a good way to do that? If you have time, just edit those two files and include the edits as part of your patch. If not, I can write that

bug#70540: grep -c -r | grep -v ':0$'

2024-04-25 Thread Dale R. Worley
Dennis Clarke via Bug reports for GNU grep writes: > Perhaps a specific example would be helpful. My most common case is something like grep -c --files-with-match 'some fragment of a command' ~/temp/shell.10?? which is searching the log files of my old shell sessions to find the most

bug#70540: grep -c -r | grep -v ':0$'

2024-04-25 Thread Dale R. Worley
Paul Eggert writes: > On 4/23/24 11:32 AM, Dale R. Worley wrote: >> However, it seems "natural" to me that "grep -c -l", that is, "grep >> --count --files-with-matches", should give me this result. > > Yes, that sounds reasonable. Is your patch a trivial one (10 lines or > less)? If so, please

bug#70540: grep -c -r | grep -v ':0$'

2024-04-24 Thread Paul Eggert
On 4/23/24 11:32 AM, Dale R. Worley wrote: However, it seems "natural" to me that "grep -c -l", that is, "grep --count --files-with-matches", should give me this result. Yes, that sounds reasonable. Is your patch a trivial one (10 lines or less)? If so, please send it in. If not, please send

bug#70540: grep -c -r | grep -v ':0$'

2024-04-24 Thread Dennis Clarke via Bug reports for GNU grep
On 4/23/24 14:32, Dale R. Worley wrote: > At least once a week, and often several times a day ... Dear Sir : This is a task I can certainly relate to. Dragging through massive storage servers with find and grep is a terrible way to get things done. > I want to search a tree of files to

bug#70540: grep -c -r | grep -v ':0$'

2024-04-23 Thread Dale R. Worley
At least once a week, and often several times a day, I want to search a tree of files to list the files in a directory containing a pattern, along with the *numbers* of patterns in the files. Usually this is because I'm looking for a file that contains a number of instances of the pattern, from