About 183,000 results
Any time
Open links in new tab
- Viewed 218k times408answered Jan 28, 2018 at 23:22
You can use the -i flag which makes your pattern case insensitive:
grep -iF "success..." file1Also, there is no need for cat. grep takes a file with the syntax grep <pattern> <file>. I also used the -F flag to search for a fixed string to avoid escaping the ellipsis.
Content Under CC-BY-SA license How to grep for case insensitive string in a file?
regex - grep --ignore-case --only - Stack Overflow
- Question & Answer
Grep Search Case Insensitive String – Ignore Case - LinuxTect
Grep Ignore Case: A Step-by-Step Guide - OLinux
Using grep and Ignoring Case (Case Insensitive grep)
grep(1) — Linux manual page - man7.org
Demystifying grep Case Sensitivity in Linux – TheLinuxCode
How to Make Grep Case Insensitive | Warp
Grep Command in Linux | Linuxize
Jan 23, 2024 · To ignore the case when searching, invoke grep with the -i option (or --ignore-case). For example, when searching for Zebra without any option, the following command will not show any output i.e, there are matching lines:
grep Ignore Case in Linux - Delft Stack
- Some results have been removed