References
- [1] StackOverflow - Lambda expression vs method reference
- https://stackoverflow.com/questions/24487805/lambda-expression-vs-method-reference
Trying to define some of my thoughts on Software Design.
So I was trying to retrieve some information out of a log, and just for funsies, I thought I'd write it down here, so I remember what I did.
In short:
So I was trying to get a list of UUIDs of messages that failed to be parsed.
The serverlog I had contained for example the following:
Short explanation:
The result should be a list of UUIDs.
Footnote 1: the sort is essential, as uniq only works on adjacent lines
Footnote 2: yes, I know I can grep inside of an awk commando, but I am more familiar with grep and this is more fun.
Footnote 3: I've tested this on my MacBook. Linux might in some cases have different syntax.