Hello all,

This ones been annoying me for a while. grep is supposed to accept a list of patterns to search for with each separated by a newline, so I've tried the following syntax(s)...
Code:
grep [PATTERN1\nPATTERN2\nPATTERN3] [INPUTFILE.TXT]
grep ["PATTERN1\nPATTERN2\nPATTERN3"] [INPUTFILE.TXT]
grep ["PATTERN1"\n"PATTERN2"\n"PATTERN3"] [INPUTFILE.TXT]
...plus various other syntax(s) but none of them seem to work, I can only search for multiple strings using the '-E' option, as in...
Code:
grep -E "PATTERN1|PATTERN2" [INPUTFILE.TXT]
...can anyone guide me here?