On 3/26/25 5:43 PM, Samuel Sieb wrote:
On 3/26/25 4:35 PM, home user via users wrote:
[snip]
The results are correct. But notice that the case sensitive search took over 7 1/4 MINUTES; the case INsensitive search took less than 1/20 second. That's a nearly 4 orders of magnitude difference! I would think that the case INsensitive search would involve more processing, and so should take longer. What's going on?
You've mixed up your option case. -i is insensitive. But both have that. The difference is the -I which means "Grope" is searching all the binary files as well.
You nailed it!...
- - - - -
bash.11[ShiPin]: time grope -ob9LHPEaKY
Western/.Organ/organ_dir.txt
real 0m0.739s
user 0m0.012s
sys 0m0.023s
bash.12[ShiPin]: time Grope -ob9LHPEaKY
Western/.Organ/organ_dir.txt
real 0m0.026s
user 0m0.013s
sys 0m0.013s
bash.13[ShiPin]: alias | grep rope
alias Grope='~/myroot/testprogs/Grope'
alias grope='~/myroot/testprogs/grope'
bash.14[ShiPin]: cat ~/myroot/testprogs/Grope
grep -rlIe $1
bash.15[ShiPin]: cat ~/myroot/testprogs/grope
grep -rilIe $1
bash.16[ShiPin]:
- - - - -
Using 'I' in both grope and Grope, and 'i' in grope only gives the correct results.
The case insensitive search takes longer, which makes sense.
I am indeed wanting the searches to skip the binary files (such as ".png" and ".mkv" files).
I am indeed wanting the searches to take case into account.
Thank-you Samuel.
It's SOLVED!
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue