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.
More Related Contents:
- How can I manipulate text in bash? [closed]
- Bash tool to get nth line from a file
- How to merge every two lines into one from the command line?
- Grep output with multiple Colors?
- How to strip out all of the links of an HTML file in Bash or grep or batch and store them in a text file
- How to delete rows from a csv file based on a list values from another file?
- Convert 11/2/1998 to 110298 [duplicate]
- Some troubles with using sed and awk [closed]
- Capturing Groups From a Grep RegEx
- How to get the part of a file after the first line that matches a regular expression
- Extraction of data from a simple XML file
- How to process each output line in a loop?
- Checking if output of a command contains a certain string in a shell script
- Using sed to mass rename files
- How to make awk ignore the field delimiter inside double quotes? [duplicate]
- Colorized grep — viewing the entire file with highlighted matches
- How to check if a file contains a specific string using Bash
- Piping tail output though grep twice
- Check if all of multiple strings or regexes exist in a file
- How to remove double-quotes in jq output for parsing json files in bash?
- Use sed to replace all backslashes with forward slashes
- Escaping forward slashes in sed command [duplicate]
- Waiting for background processes to finish before exiting script
- How to find/replace and increment a matched number with sed/awk?
- How to match a single quote in sed
- Extract version number from a string
- how to delete the duplicate lines in file except the first matched line
- How to append a string at end of a specific line in a file in bash [duplicate]
- Parse HTML using shell
- using bash (sed/awk) to extract rows AND columns in CSV files?