On 3/26/25 7:40 PM, Sam Varshavchik wrote:
home user via users writes:
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.
Now, try adding more not-letters-and-digits to the search string. It won't be long before things stop working again.
$ echo 'j^k' >z
$ grep '^k' z
[zilch]
grep can't find '^k' in a file that clearly contains it.
Now, you have to go back to all your scripts and also include the -F option, for this.
$ grep -F '^k' z
j^k
sigh.
Should I replace the 'e' option with the 'F' option,
or do I need both options?
By the way, grep's behavior suggests that the order of the options matters. I did not expect that. Does the order of the options really matter?
--
_______________________________________________
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