bash - grep for multiple strings in file on different lines (ie. whole file, not line based search)? - Stack Overflow

PHOTO EMBED

Mon Mar 07 2022 06:08:40 GMT+0000 (Coordinated Universal Time)

Saved by @haddly

egrep 'abc|xyz' file1 file2 ..filen 
content_copyCOPY

This searches multiple words in multiple files:

https://stackoverflow.com/questions/4795323/grep-for-multiple-strings-in-file-on-different-lines-ie-whole-file-not-line-b