Search all occurrences of string in linux
linux
Solution
Try this:
$ grep <string> <file>
where `<string>` and `<file>` represent the string you are looking for and the name of the file, respectively. You might also want to read up on the grep command as it is very powerful.
Problem
I am new to Linux. I want to search a string in log file. In search result I want only lines which contains that string.