About 183,000 results
Open links in new tab
    Upvotes408Top Answeranswered Jan 28, 2018 at 23:22

    You can use the -i flag which makes your pattern case insensitive:

    grep -iF "success..." file1

    Also, 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
    Was this helpful?
  1. How to grep for case insensitive string in a file?

  2. regex - grep --ignore-case --only - Stack Overflow

  3. Grep Search Case Insensitive String – Ignore Case - LinuxTect

  4. Grep Ignore Case: A Step-by-Step Guide - OLinux

  5. Using grep and Ignoring Case (Case Insensitive grep)

  6. grep(1) — Linux manual page - man7.org

  7. Demystifying grep Case Sensitivity in Linux – TheLinuxCode

  8. How to Make Grep Case Insensitive | Warp

  9. 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:

  10. grep Ignore Case in Linux - Delft Stack

  11. Some results have been removed