2 ms·
As I have already said, grep -whor '[A-Z][A-Za-z]*Exception' * | sort | uniq -c for a histogram of exceptions inside logs downloaded from a bunch of nodes
by thriftwy 9y ago
As I have already said,
grep -whor '[A-Z][A-Za-z]*Exception' * | sort | uniq -c
for a histogram of exceptions inside logs downloaded from a bunch of nodes.
As for -w, my favourite case is https://unix.stackexchange.com/questions/110645/select-lines-from-text-file-which-have-ids-listed-in-another-file https://unix.stackexchange.com/questions/110645/select-lines...
As for -o,
grep -o ........-....-....-....-............
It may look like Morse code, but what it does is greps UUIDs out.
- jakeogh 9y agoAhhh. TIL!
- djKianoosh 9y agocool stuff, i was messing around with this. To then take that list of exceptions and find them back the actual files again, tack on at the end: `| grep -Fwf - *`