Filter out duplicate lines from a log that have the same end pattern
I have a log that contains three patterns of interest (there are lots of lines, only three patterns are of interest in this context). Each line starts with a timestamp, followed by the log message. Lines with Pattern A will be followed by either Pattern B or Pattern C, then zero or more occurrences of the B/C pattern. For example: timestamp1 Pattern A timestamp2 Pattern B timestamp3 Pattern B timestamp4 Zero or more log message we're not interested in timestamp5 Pattern A timestamp6 Pattern C timestamp7 Pattern C timestamp8 Pattern C I would like to filter out the duplicated lines. Now, I know
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.