> ## Content Index
> Fetch the complete content index at: https://kudithipudi.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# HOW TO : Search for multiple words in a string using grep
- URL: https://kudithipudi.org/how-to-search-for-multiple-words-in-a-string-using-grep/
- Published: 2016-06-16T04:20:15.000Z
- Updated: 2016-06-16T04:20:15.000Z
- Description: Just for my records grep “WORD\|ANOTHER\|NEITHER” string searches for either “WORD” or “ANOTHER” or “NEITHER” in string.
- Author: admin
- Tags: HOWTO, Linux, Technology, Uncategorized, grep, howto, linux, #wp, #wp-post, #Import 2026-08-23 02:32

Just for my records

grep "WORD\\|ANOTHER\\|NEITHER" string

searches for either “WORD” or “ANOTHER” or “NEITHER” in string.