On Wed, 2006-09-27 at 13:38 -0400, Tony Schreiner wrote:
On Sep 27, 2006, at 1:02 PM, William L. Maltby wrote:
I'm going to bugz this if no one tells me I made another brain-damaged error here.<snip>
$ cat MakeBugReportData #!/bin/bash cd /usr/src rpm -q --file /usr/bin/find find . | grep -i '.cmd$' >/tmp/FilesGreppedDotCmd find . | grep -i '.c$' >/tmp/FilesGreppedDotC find . -iname '*.cmd' >/tmp/FilesFoundDotCmd find . -iname '*.c' >/tmp/FilesFoundDotC wc -l /tmp/FilesGreppedDotCmd /tmp/FilesFoundDotCmd \ /tmp/FilesGreppedDotC /tmp/FilesFoundDotC [wild-bill@wlmlfs08 tmp]$ sh ./MakeBugReportData findutils-4.1.20-7.el4.1.i386 88 /tmp/FilesGreppedDotCmd 0 /tmp/FilesFoundDotCmd 3582 /tmp/FilesGreppedDotC 3582 /tmp/FilesFoundDotC 7252 total
$ head -5 FilesGreppedDotCmd ./kernels/2.6.9-42.0.2.EL-smp-i686/scripts/genksyms/.genksyms.o.cmd ./kernels/2.6.9-42.0.2.EL-smp-i686/scripts/genksyms/.parse.o.cmd ./kernels/2.6.9-42.0.2.EL-smp-i686/scripts/genksyms/.lex.o.cmd ./kernels/2.6.9-42.0.2.EL-smp-i686/scripts/genksyms/.genksyms.cmd ./kernels/2.6.9-42.0.2.EL-smp-i686/scripts/.conmakehash.cmd
TIA
Bill
find . -name '*.cmd' or find . -iname '*.cmd'
does not appear to find file beginning with dot.
whereas
find . | grep cmd$
does. I thnk that's your difference.
Tony Schreiner
Please see my other reply.
I specified the dot and it should have matched. Even if I'm wrong, we still have a problem because it found ".c".
<snip sig stuff>
But I do appreciate that you took the time. Can I bve greedy with you too? Can you run the cmnds and let me know the results?
Thanks, -- Bill