You can use the
-i flag which makes your pattern case insensitive:
grep -iF "success..." file1
Also, there is no need for
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.
- Bash tool to get nth line from a file
- How to merge every two lines into one from the command line?
- awk or sed extract each number of column alone
- How do I use shell variables in an awk script?
- How can I do a recursive find/replace of a string with awk or sed?
- Capturing Groups From a Grep RegEx
- How to get the part of a file after the first line that matches a regular expression
- Remove first N lines of a file in place in unix command line
- How to process each output line in a loop?
- How to add to the end of lines containing a pattern with sed or awk?
- Using sed to mass rename files
- Use sed to replace all backslashes with forward slashes
- Extraction of data from a simple XML file
- Checking if output of a command contains a certain string in a shell script
- How to make awk ignore the field delimiter inside double quotes? [duplicate]
- Piping tail output though grep twice
- Colorized grep — viewing the entire file with highlighted matches
- Waiting for background processes to finish before exiting script
- How to check if a file contains a specific string using Bash
- How to remove double-quotes in jq output for parsing json files in bash?
- Insert multiple lines into a file after specified pattern using shell script
- Check if all of multiple strings or regexes exist in a file
- Scripts for computing the average of a list of numbers in a data file
- How to match a single quote in sed
- Escaping forward slashes in sed command [duplicate]
- Filter lines that have only alphabets in first column
- How can I debug a Bash script? [closed]
- When do we need curly braces around shell variables?
- How can I pipe stderr, and not stdout?
- Why would a correct shell script give a wrapped/truncated/corrupted error message? [duplicate]
- How can I compare numbers in Bash?
- Capture stdout and stderr into different variables
- How do I escape the wildcard/asterisk character in bash?
- Ubuntu says “bash: ./program Permission denied” [closed]
- How to reload .bashrc settings without logging out and back in again?
- Exit Shell Script Based on Process Exit Code [duplicate]
- How to replace an entire line in a text file by line number
- How to pass in password to pg_dump?
- How to parse a CSV in a Bash script?
- Why do I get “/bin/sh: Argument list too long” when passing quoted arguments?
- What does “export” do in shell programming? [duplicate]
- What is the most elegant way to remove a path from the $PATH variable in Bash?
- How to schedule to run first Sunday of every month
- Variables as commands in Bash scripts
- Execute command containing quotes from shell variable [duplicate]
- Finding contents of one file in another file
- Is there an elegant way to store and evaluate return values in bash scripts?
- Subtract two variables in Bash
- Run one command after another, even if I suspend the first one (Ctrl-z)
- How can I trim white space from a variable in awk?