All,
I have a large server log with contains the entry:
not found from Module
Immediately after it is a quotation mark followed location of a module. The file is over 4,800 lines long, and each module may appear over 100 times. So, what I’d like to do is something like a wc -l, but then to only show me the number of unique values in the module name portion of the server log. Any ideas?
grep -oP '(?<=not found from Module ")[^"]+(?=")' logfile | sort -u | wc -l