Silly question ahoy.
I'm trying to search through a couple hundred log files to find and output each line on screen (and eventually to a file) where the searched for phrase turns up.
I assume this can be done via grep, but I've searched through the man page for grep and can't see how, which is most likely me just being slow, but can someone give me a hand.
The sending to a file I can do with "> filename" but the actual searching multiple files is doing my head in
I'm trying to search through a couple hundred log files to find and output each line on screen (and eventually to a file) where the searched for phrase turns up.
I assume this can be done via grep, but I've searched through the man page for grep and can't see how, which is most likely me just being slow, but can someone give me a hand.
The sending to a file I can do with "> filename" but the actual searching multiple files is doing my head in
