I have a large log file that contains numerous lines of the same entry, lets call it "repeat-info". As an example here is what a portion of the log might look like:
[Timestamp] repeat-info
[Timestamp] repeat-info
[Timestamp] Log information 1
[Timestamp] Log information 2
[Timestamp] repeat-info
[Timestamp] Log information 3
[Timestamp] repeat-info
Is there a command that can output the information in the log file and exclude the repeated information? It becomes a hassle if I have to use more file.log
and sift through all the repeating information to find what it is I want to look at.
I am reading through the man pages for sed
and awk
as I saw those appear in searches for my question, however I haven't found anything conclusive that would do what I need.
I was searching through the older questions and found this question which is related to mine.
I was looking for a way to do this with a single command, or two piped together, without having to create a script.
Any help is appreciated!
grep -v
or is it something more?