You can use grep for that, with the -F option.
-F, --fixed-strings PATTERN is a set of newline-separated fixed strings
More Related Contents:
- How can I grep for a string that begins with a dash/hyphen?
- Use grep –exclude/–include syntax to not grep through certain files
- How does grep run so fast?
- How to grep for the whole word
- Print lines in one file matching patterns in another file
- Using grep for multiple search patterns
- Display filename before matching line
- grep a tab in UNIX
- grep for special characters in Unix
- Grepping for exact words with UNIX
- Linux grep command with relevant values as output
- Remove carriage return in Unix
- How to delete duplicate lines in a file without sorting it in Unix
- Force line-buffering of stdout in a pipeline
- Is file append atomic in UNIX?
- Delete specific line number(s) from a text file using sed?
- How to do a mass rename?
- Date arithmetic in Unix shell scripts
- Get last field using awk substr
- unix command line execute with . (dot) vs. without
- grep without showing path/file:line
- How do you recursively unzip archives in a directory and its subdirectories from the Unix command-line?
- Unix sort of version numbers
- Remove non-ASCII characters in a file [duplicate]
- Syntax highlighting/colorizing cat
- A cron job that will never execute
- Use and meaning of session and process group in Unix?
- Crontab Formatting – every 15 minutes
- Shell script “for” loop syntax
- Why does RSA encrypted text give me different results for the same text